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
Difference between strcpy() and memcpy() function?
How can I sort a linked list?
Why use int main instead of void main?
How do you use a 'Local Block'?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is getch c?
How can type-insensitive macros be created?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is pointer to pointer in c language?
What is a method in c?
what are the advantages of a macro over a function?
What is 1d array in c?
how to build a exercise findig min number of e heap with list imlemented?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Do pointers need to be initialized?