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 is structure in c explain with example?
What is meant by keywords in c?
What is difference between class and structure?
What are dangling pointers? How are dangling pointers different from memory leaks?
what is stack , heap ,code segment,and data segment
what is the significance of static storage class specifier?
Write a code to remove duplicates in a string.
Explain what does the function toupper() do?
Do array subscripts always start with zero?
How can you tell whether two strings are the same?
What is static and auto variables in c?
Explain what are the different data types in c?
How can I automatically locate a programs configuration files in the same directory as the executable?
Explain the difference between exit() and _exit() function?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..