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...

main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}

Answer Posted / abhishek marshetty

Explanation: printf( ) prints address/garbage of i, scanf() dont have & sign, so scans address for i +1, -1 dont have any effect on code.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2387


List some of the dynamic data structures in C?

1303


What does the error message "DGROUP exceeds 64K" mean?

1277


Explain what is the difference between the expression '++a' and 'a++'?

1265


Explain the difference between call by value and call by reference in c language?

1161


What do you mean by a sequential access file?

1136


What is use of null pointer in c?

1059


What is a char in c?

1040


What are the advantages of external class?

1122


Define Spanning-Tree Protocol (STP)

1178


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1356


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

1206


When c language was developed?

1105


Are pointers really faster than arrays?

1081


Explain what are header files and explain what are its uses in c programming?

1201