0 votes 0 votes #include<stdio.h> #include<stdlib.h> int main() { char s[] = "Opendays2012"; int i = 0; while(*(s++)) i++; printf("%d",i); return 0; } (a) Segmentation Fault (b) Compile Error (c) 12 (d) 0 Programming in C programming-in-c pointers output interview array + – Desert_Warrior asked May 16, 2016 Desert_Warrior 591 views answer comment Share Follow See 1 comment See all 1 1 comment reply Desert_Warrior commented May 16, 2016 reply Follow Share I guess ans is : 12 . What do u think ? 0 votes 0 votes Please log in or register to add a comment.
Best answer 7 votes 7 votes Answer will be B) Compile Error In char s[size]; s is a constant pointer pointer. You can not perform operation like s++ or s = s + 1; rude answered May 17, 2016 selected May 17, 2016 by srestha rude comment Share Follow See all 0 reply Please log in or register to add a comment.