#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
How do you define structure?
while initialization of array why we use a[][2] why not a[2][]...?
Write a program to check whether a number is prime or not using c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain how can a program be made to print the line number where an error occurs?
What is #define in c?
Is printf a keyword?
What does 3 periods mean in texting?
What is difference between array and pointer in c?
What is the usage of the pointer in c?
What is the total generic pointer type?
What is an auto variable in c?
What are the parts of c program?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.