What will be the output of
x++ + ++x?
Answer Posted / debashree
#include<stdio.h>
int main()
{
int x=1,y;
y=x++ + ++x;
printf("y=%d\n",y);
return 0;
}
o/p->
y=4
| Is This Answer Correct ? | 17 Yes | 7 No |
Post New Answer View All Answers
Why do we use main function?
What is the purpose of & in scanf?
What is the difference between test design and test case design?
What is meant by operator precedence?
What does the format %10.2 mean when included in a printf statement?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is multidimensional arrays
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
How can I determine whether a machines byte order is big-endian or little-endian?
How can I send mail from within a c program?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Explain 'bit masking'?
How can you find out how much memory is available?
What is the difference between the local variable and global variable in c?
What does c mean in standard form?