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

write a program for area of circumference of shapes

0 Answers  


Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])

1 Answers  


write a c-program to find gcd using recursive functions

5 Answers   HTC, Infotech,


create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"

2 Answers  


how to delete an element in an array

2 Answers   IBM,






what is the code of the output of print the 10 fibonacci number series

2 Answers  


code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }

2 Answers   Broadridge,


how to swap 3 nos without using temporary variable

4 Answers   Satyam,


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

2 Answers   Wipro,


what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }

6 Answers   CSC, IIIT,


Program to find the largest sum of contiguous integers in the array. O(n)

11 Answers  


Categories