what is the value of b
if a=5;
b=++a + ++a
Answer Posted / shashikanth
if a=5;
b=++a+++a;
initial value a=5
first prefix 6
second prefix 7
final value b=7+7
b=14
ans 14
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is function pointer c?
What are shell structures used for?
What is a good way to implement complex numbers in c?
How would you rename a function in C?
What are derived data types in c?
What header files do I need in order to define the standard library functions I use?
How do you do dynamic memory allocation in C applications?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
I came across some code that puts a (void) cast before each call to printf. Why?
How many levels of indirection in pointers can you have in a single declaration?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is pre-emptive data structure and explain it with example?
What is chain pointer in c?
Describe explain how arrays can be passed to a user defined function
How can you be sure that a program follows the ANSI C standard?