retagged by
536 views
1 votes
1 votes

What will be the output of the following program-?

int main()
{
    char *str="india";
    printf("%d\n",country(str));
    return 0;
    
}
 int country(int *p1)
 {
     int *p2=p1;
     while(*++p1)
     {
         return (p1-p2);
     }
 }

retagged by

1 Answer

Related questions

1 votes
1 votes
2 answers
4