Question
#include<stdio.h>
int func1(int);
int main()
{
int k=35;
k = func1(k=func1(k=func1(k)));
printf("k=%d\n", k);
return 0;
}
int func1(int k)
{
k++;
return k;
}
a.
k=35
b.
k=36
c.
k=37
d.
k=38
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the program?
Similar Questions
Discover Related MCQs
Q. In the following 'C' code, in which order the functions would be called ?
a = ( f1(23,14 ) * f2 (12/14)) + f3 () ;
View solution
Q. The function that actually created from a call to a template function is called
View solution
Q. A function that is prototype as
int calculate(int num);
may
View solution
Q. A function that uses variable types is called
View solution
Q. A function that is prototyped as double calculate (int, num);
may
View solution
Q. The declaration
void function1(int)
indicates the function1 is a function which
View solution
Q. The function fprintf is used in a program
View solution
Q. The function is lower(char) checks whether a character is in lower case or not, therefore it should return
View solution
Q. If max is a function that returns the larger of the two integers, given as arguments, then which of the following statements finds the largest of three given numbers
View solution
Q. A function can make
View solution
Q. Let a, b be two non-negative integers. Which of the following calls, finds the positive difference of a and b ?
View solution
Q. Pick the correct statements
View solution
Q. max is a function that returns the larger of the two integers, given as arguments. Which of the following statements finds the largest of three given numbers?
View solution
Q. Forward declaration is absolutely necessary
View solution
Q. void can be used
View solution
Q. Feature for accessing a variable through its address is desireable because
View solution
Q. It is not advisable to use macros instead of functions because
View solution
Q. Which of the following is/are syntactically correct?
View solution
Q. Use of macro instead of function is recommended
View solution
Q. Which of the following is not a primitive recursive but partially recursive?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!