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()

{

char *p;

p="%d\n";

p++;

p++;

printf(p-2,300);

}



main() { char *p; p="%d\n"; p++; ..

Answer / susie

Answer :

300

Explanation:

The pointer points to % since it is incremented twice and
again decremented by 2, it points to '%d\n' and 300 is printed.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More C Code Interview Questions

main() { struct date; struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


Is it possible to print a name without using commas, double quotes,semi-colons?

7 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


Cluster head selection in Wireless Sensor Network using C programming language.

0 Answers  


main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }

1 Answers  


String copy logic in one line.

11 Answers   Microsoft, NetApp,


what is variable length argument list?

2 Answers  


how can i cast a char type array to an int type array

2 Answers  


programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h

1 Answers  


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

1 Answers  


#include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }

1 Answers  


Display the time of the system and display the right time of the other country

1 Answers  


Categories