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 WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW
IT COME ..

#include<stdio.h>
#include<conio.h>
void main()
{
int k=20;
printf("%d%d%d%d",k,k++,++k,k);
getch();
}

Answer Posted / prats

its stack operation . .

top will get printed first . .

answer will b 22 21 21 20

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it fine to write void main () or main () in c?

968


Explain how can you restore a redirected standard stream?

1033


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1098


What is sizeof array?

1004


If I have a char * variable pointing to the name of a function ..

1117


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2044


What are the types of unary operators?

1133


Explain what are the different file extensions involved when programming in c?

1054


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1900


How to get string length of given string in c?

1014


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

1012


What are the different types of control structures in programming?

1088


What is memcpy() function?

1051


What is unsigned int in c?

934


Under what circumstances does a name clash occur?

1159