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

main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }

2 Answers   Adobe, CSC,


#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); }

1 Answers  


respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"

1 Answers   Genpact, Ozdocs,


Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.

21 Answers   ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,


C program to print magic square of order n where n > 3 and n is odd

2 Answers   Accenture,






main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above

4 Answers   HCL, LG,


Give a oneline C expression to test whether a number is a power of 2?

25 Answers   EA Electronic Arts, Google, Motorola,


&#8206;#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }

2 Answers  


#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }

3 Answers   Hexaware,


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

1 Answers  


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


I need your help, i need a Turbo C code for this problem.. hope u'll help me guys.? Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply the remaining six (6) values and determine the exact location of each value in the array. Example: Input: Sum of row 1: 6 Sum of row 2: 15 Sum of row 3: 24 Sum of column 1: 12 Sum of column 2: 15 Sum of column 3: 18 Value 1: 3 Value 2: 5 Value 3: 6 Output: Sum of Row 1 2 3 6 4 5 6 15 7 8 9 24 Sum of Column 12 15 18 Note: Your program will not necessary sort the walues in the array Thanks..

0 Answers  


Categories