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 / pratik.nikam3112

answer is

22 21 21 20

Is This Answer Correct ?    38 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1140


Why c is a procedural language?

1043


How many main () function we can have in a project?

1098


Which is best book for data structures in c?

1084


Is c weakly typed?

1010


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

2450


can we implement multi-threads in c.

1118


What is the difference between #include and #include 'file' ?

1039


What are the two types of functions in c?

989


What are c preprocessors?

1171


Why void is used in c?

1004


What is assert and when would I use it?

982


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1850


What is void main ()?

1060


What is the purpose of realloc()?

1127