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

In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

3133


Explain what is a program flowchart and explain how does it help in writing a program?

1103


What is the size of a union variable?

1063


Are bit fields portable?

1165


I came across some code that puts a (void) cast before each call to printf. Why?

1231


What is use of null pointer in c?

1023


What is ## preprocessor operator in c?

1100


What are the differences between Structures and Arrays?

1227


Can we access the array using a pointer in c language?

1059


Can you explain the four storage classes in C?

1132


what is the role you expect in software industry?

2157


Can we change the value of constant variable in c?

1067


How can I write a function analogous to scanf?

1198


When should the const modifier be used?

1124


Why is sizeof () an operator and not a function?

1043