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
What are c preprocessors?
What is null pointer in c?
Can you please explain the difference between syntax vs logical error?
How can I write a function analogous to scanf?
I need a sort of an approximate strcmp routine?
What are the different types of endless loops?
Why is #define used?
How are Structure passing and returning implemented by the complier?
What is unary operator?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Is anything faster than c?
What is the difference between procedural and functional programming?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
Are comments included during the compilation stage and placed in the EXE file as well?
Explain about block scope in c?