#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / banavathvishnu
let consider the statement
b = ++a + ++a;
++a will be 2
++a again will be 3
now replace its value in the expression
b = a + a = 3+3=6
hence a is 3 and b is 6
Is This Answer Correct ? | 26 Yes | 12 No |
Post New Answer View All Answers
Can we replace the struct function in tree syntax with a union?
What are the disadvantages of external storage class?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Give differences between - new and malloc() , delete and free() ?
what are enumerations in C
What is sizeof int?
Give the rules for variable declaration?
Do you know pointer in c?
What is string length in c?
What are conditional operators in C?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Why do we use c for the speed of light?
How pointers are declared?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What are loops in c?