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

1. Write a program to reverse every second word in a given sentence.

1 Answers  


Is there any data type in c with variable size?

0 Answers  


how should functions be apportioned among source files?

0 Answers  


Are negative numbers true in c?

0 Answers  


hat is a pointer?

4 Answers   Assurgent,


how many keywords do C compile?

7 Answers   Microsoft, Practical Viva Questions,


what is pointer ? what is the use of pointer?

6 Answers   Infosys,


Explain the use of bit fieild.

0 Answers  


I need testPalindrome and removeSpace #include <stdio.h> #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, &copyCount); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

0 Answers  


Why is this loop always executing once?

0 Answers  


What is signed and unsigned?

0 Answers  


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

0 Answers  


Categories