What will be printed as the result of the operation below:
#include<..>
int x;
int modifyvalue()
{
return(x+=10);
}
int changevalue(int x)
{
return(x+=1);
}
void main()
{
int x=10;
x++;
changevalue(x);
x++;
modifyvalue();
printf("First output:%d\n",x);
x++;
changevalue(x);
printf("Second output:%d\n",x);
modifyvalue();
printf("Third output:%d\n",x);
}
Answer Posted / civa
The Output will be:
First output : 12
Second output : 13
Third output : 13
| Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
Can the sizeof operator be used to tell the size of an array passed to a function?
Explain bitwise shift operators?
What is keyword with example?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What are global variables and how do you declare them?
What is the value of h?
How do you sort filenames in a directory?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What does != Mean in c?
Can the size of an array be declared at runtime?
can we implement multi-threads in c.
What is a char c?
Why is not a pointer null after calling free?