f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?
Answers were Sorted based on User's Feedback
Answer / jack
in line 4, a's value is pushed on to stack and then
increaments.........In line 6 the function f1 pops the a's
value and assigned to c so .......c is value is 2.......
Is This Answer Correct ? | 7 Yes | 2 No |
Answer / viji
a++ is postfix operator so it first assigns its values and
then incremented. In above statement the value of a is first
assigned to c and then increment. so the output of c is 2;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / banavathvishnu
a value will be first assigned to C in the Function and
latter it will be incremented in f() function.
so the value C remains 2
Is This Answer Correct ? | 0 Yes | 0 No |
define string ?
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?
What are structure types in C?
char ch="{'H','I',0};printf("%s",ch);what is output
what r callback function?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Why we use void main in c?
program to get the remainder and quotant of given two numbers with out using % and / operators?
10 Answers College School Exams Tests, IBM,
What is the explanation for cyclic nature of data types in c?
Explain how can you check to see whether a symbol is defined?
write a progrmm in c language take user interface generate table using for loop?
What does 2n 4c mean?