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;
}



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

Answer / 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

More C Interview Questions

Can we compile a program without main() function?

0 Answers  


Is a house a shell structure?

0 Answers  


What is array of structure in c?

0 Answers  


what is ans for this scanf(%%d",c);

1 Answers  


What are the various types of control structures in programming?

0 Answers  


How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  


implement OR gate without using any bitwise operator.

1 Answers   Alcatel, Wipro,


write a program to remove duplicate from an ordered char array? in c

2 Answers  


How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?

1 Answers  


which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


Can we use visual studio for c?

0 Answers  


int i=~0; uint j=(uint)i; j++; printf(“%d”,j);

1 Answers  


Categories