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 = “ayqm”;

printf(“%c”,++*(p++));

}

Answers were Sorted based on User's Feedback



main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / krishna kumar

nothing print (blank) .

Is This Answer Correct ?    1 Yes 7 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / mohan

error

Is This Answer Correct ?    3 Yes 10 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / manoj ku. dalai

z

Is This Answer Correct ?    0 Yes 7 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / ravneet kaur

as *p has address of a.and after increment p++ it moves to
y and after ++*(p++) its address is incremented and gets the
another location and gets the value z and value of memory
location is any other value.

Is This Answer Correct ?    6 Yes 14 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / mohan

y

Is This Answer Correct ?    1 Yes 9 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / laxmi bose

q

Is This Answer Correct ?    5 Yes 15 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / pavan

c

Is This Answer Correct ?    7 Yes 21 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / raajdurai

compile error

Is This Answer Correct ?    20 Yes 37 No

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }..

Answer / marginal

q

Is This Answer Correct ?    4 Yes 25 No

Post New Answer

More C Code Interview Questions

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }

4 Answers  


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

0 Answers  


main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }

1 Answers  


What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }

1 Answers  


main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513

3 Answers   HCL, Logical Computers,


why the range of an unsigned integer is double almost than the signed integer.

1 Answers  


#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %d”, i, j, k); }

3 Answers  


int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }

1 Answers  


Write a c program to search an element in an array using recursion

1 Answers   Wipro,


Is it possible to type a name in command line without ant quotes?

1 Answers   Excel, Infosys,


What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }

1 Answers  


Categories