#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / ashok
initially a=1,b=0
++a=2 //1+1=2
++a=3 //2+1=3
b=2+3=5
answer:a=3 b=5
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
How are 16- and 32-bit numbers stored?
Are the outer parentheses in return statements really optional?
How can you find the exact size of a data type in c?
What language is c written?
Can we initialize extern variable in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is the value of c?
Is fortran still used today?
Can you write the algorithm for Queue?
Why isnt there a numbered, multi-level break statement to break out
Explain what is wrong with this statement? Myname = ?robin?;
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
In c programming language, how many parameters can be passed to a function ?
How can you be sure that a program follows the ANSI C standard?
what is the height of tree if leaf node is at level 3. please explain