0% found this document useful (0 votes)
96 views1 page

Tutorial 4

An array is a collection of similar data types stored in contiguous memory locations that can be accessed using an index. Strings are arrays of characters that can be manipulated using functions like strcat to concatenate, strcmp to compare, and strstr to search. User-defined functions allow programmers to define reusable blocks of code. Functions are categorized based on return type and parameters, with actual parameters passed during a call corresponding to formal parameters defined in the function header. Recursive functions call themselves during execution, while global variables are accessible from anywhere in a program and local variables are only accessible within the function they are declared.

Uploaded by

Sannisth Soni
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views1 page

Tutorial 4

An array is a collection of similar data types stored in contiguous memory locations that can be accessed using an index. Strings are arrays of characters that can be manipulated using functions like strcat to concatenate, strcmp to compare, and strstr to search. User-defined functions allow programmers to define reusable blocks of code. Functions are categorized based on return type and parameters, with actual parameters passed during a call corresponding to formal parameters defined in the function header. Recursive functions call themselves during execution, while global variables are accessible from anywhere in a program and local variables are only accessible within the function they are declared.

Uploaded by

Sannisth Soni
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Programming and Utilization Tutorial 4

Q-1 What is an Array? Explain types of array with example. Q-2 What is String? What are the operations that can be performed on string? Q!escribe following string f"nctions in # lang"age with example. $2% strcat$ % $&% strcmp$ % $(% strstr$ %

$1% strcpy$ % $ % strlen$ % $'% strncmp$ %

Q-& What is )ser-defined f"nction? Explain different categories of f"nction with example? Q-' Explain act"al parameters and formal parameters. Q-( What do yo" mean by *ec"rsi+e f"nction? Explain with example. Q-, !ifference between -ocal +ariables and .lobal +ariables. Q-/ !ifference between #all by 0al"e and #all by *eference with example.

You might also like