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
How are variables declared in c?
What is the condition that is applied with ?: Operator?
Why is structure important for a child?
What does the file stdio.h contain?
Is null always defined as 0(zero)?
I need testPalindrome and removeSpace
#include
Explain what will the preprocessor do for a program?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is the difference between a free-standing and a hosted environment?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What does printf does?
How can I swap two values without using a temporary?
How can I make it pause before closing the program output window?
How do you print only part of a string?