Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the Output?
int a=4 b=3;
printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++);

printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);

Answers were Sorted based on User's Feedback



what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / ii yr information technology

466799
3200-2-3

Is This Answer Correct ?    29 Yes 14 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / arun sebastin

9 9 7 6 6 4

-2 -1 -1 1 1 2

The conceptis simple dothe operation in reverse

Is This Answer Correct ?    9 Yes 2 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / suresh mca

output
997664
-2-1-1112


here the concept is very is....
the work flow of the printf statement is right to left
and display of the statement is left to right.......
thats all very simple logic

Is This Answer Correct ?    7 Yes 0 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / malith

9,10,7,6,10,4-2,-1,-3,1,-3,-3

Is This Answer Correct ?    1 Yes 2 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / dumitru

in Open Suse the result is:

9 10 7 6 10 4

-2 -1 -3 1 -3 -3

Is This Answer Correct ?    2 Yes 4 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / lohith

997664 -2-1-1112

Is This Answer Correct ?    5 Yes 9 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / mathan kumar .t

6,6,5,5,5,4
0,0,0,1,1,2

Is This Answer Correct ?    1 Yes 6 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / vinod kumar

in fedora it is giving
91076104
-2-1-31-3-3

but dont know how

Is This Answer Correct ?    0 Yes 5 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / pedda

4,5,4,4,5,4
3,3,2,3,2,2

Is This Answer Correct ?    2 Yes 10 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / lingaraja.d

5,5,5,5,5,5 2,2,2,2,2,2

Is This Answer Correct ?    3 Yes 16 No

Post New Answer

More C Interview Questions

What is data structure in c and its types?

0 Answers  


In C programming, what command or code can be used to determine if a number of odd or even?

0 Answers  


What is memcpy() function?

0 Answers  


struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 Answers  


which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


Why cann't whole array can be passed to function as value.

1 Answers  


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

0 Answers  


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

0 Answers  


What is the difference between typeof(foo) and myFoo.GetType()?

2 Answers   Synergy,


What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these

3 Answers   IBM,


Is javascript written in c?

0 Answers  


what is the difference between structural,object based,object orientd programming languages?

1 Answers   PanTerra,


Categories