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
Explain what header files do I need in order to define the standard library functions I use?
What is the use of #define preprocessor in c?
Explain how can I write functions that take a variable number of arguments?
I need previous papers of CSC.......plz help out by posting them.......
Why isnt any of this standardized in c?
What is scanf_s in c?
What are reserved words with a programming language?
Which is better oop or procedural?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
write a c program to find the sum of five entered numbers using an array named number
Mention four important string handling functions in c languages .
Can you define which header file to include at compile time?
What are the advantages of using Unions?
What is the use of structure padding in c?
What does the c in ctime mean?