Question: What is function? O Function is the fundamental modular unit. A function is usually designed to perform a specific task. O All of the above















What is function? O Function is the fundamental modular unit. A function is usually designed to perform a specific task. O All of the above O Function is a block of code that performs a specific task. It has a name and it is reusable. O Function is a block of statements that perform some specific task. Determine Output. --------- -- main() int i = abc(10); printf("%d", --i); int abc(int i) return(i++); O 11 O none of these 09 O 10 Which of the following functions calculate the Square of 'x' in C? O sqr(x) O power(x, 2) o pow(2,x) O pow(x, 2) O power(2,x) char* myfunc(char *ptr) { ptr+=3; return(ptr); void main() char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y); What will be printed when the sample code above in executed? O y=EXAMVEDA O y=MVEDA O y=EDA O y=VEDA O y=AMVEDA What is a correct way to initialize array? O int n{} = {2, 4, 12,5, 45, 5 }; O int n{6} = {2,4, 12 }; O int n(6) = { 2, 4, 12, 5, 45, 5 }; O int num[6] = { 2, 4, 12, 5, 45, 5 }; Determine Output. ------------------------ #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
