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

but when we compile this code in editor it shows the output
22 21 21 20 .

whts wrong then ?

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain union.

1155


What are the two types of functions in c?

987


What will be the outcome of the following conditional statement if the value of variable s is 10?

1277


How do you redirect a standard stream?

1086


What is meant by initialization and how we initialize a variable?

1036


What is the difference between array and pointer in c?

1137


What is the purpose of macro in C language?

1099


Mention four important string handling functions in c languages .

1073


What does %2f mean in c?

1196


How do you initialize pointer variables?

1074


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1293


What is f'n in math?

1049


Is c procedural or functional?

1005


Is c dynamically typed?

1134


Why array is used in c?

1004