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

Why do we use c for the speed of light?

1098


How can I implement a delay, or time a users response, with sub-second resolution?

1032


Explain what is the difference between functions abs() and fabs()?

1098


Give me the code of in-order recursive and non-recursive.

1319


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1948


Sir i need notes for structure,functions,pointers in c language can you help me please

2349


Where static variables are stored in memory in c?

945


What is function pointer c?

1028


Are there any problems with performing mathematical operations on different variable types?

989


What is dangling pointer in c?

1130


What is int main () in c?

1024


What is a example of a variable?

949


write a program to copy the string using switch case?

2842


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1942


What does s c mean in text?

1053