31 Aug 2017

What is the output for this code and give clear explanation?

#include<stdio.h>
#include<stdlib.h>
int main()
{
 char *a = "India";
 char b[] = "India";
 a = a+1;//line 5
 b = b+1;//line 6
/ *assume printf */
}


No comments:

Post a Comment

commnet here