C Programming :: Functions
- Which of the following is a complete function?
-
What will be printed when this program is executed?
int f(int x)
{
if(x <= 4)
return x;
return f(--x);
}
void main()
{
printf("%d ", f(7));
}
- The recursive functions are executed in a ...........
- The function scanf() returns .........
- Functions have ..........
- Which of the following function calculates the square of 'x' in C?
- When a function is recursively called all the automatic variables are stored in a ..........
-
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 is executed?