Computer Science, asked by shriyapandey436, 4 months ago

11.The following fragment of c program will print?
char c[ ] = “DATA1234”
char * P = C;
printf (“%s” P+P[3]-P[1]);
a.DATA1234
b.234
c.1234
d.A1234

Answers

Answered by renukabedarkar07
4

Answer:

a) DATA1234

Explanation:

p=&c

p+p[3]- p[1]

= 1000+ A - A

= 1000

hence option a) is ans

Similar questions