main()
{
struct s1
{
char *str;
struct s1 *ptr;
};
static struct s1 arr[] = { {"Hyderabad",arr+1},
{"Bangalore",arr+2},
{"Delhi",arr}
};
struct s1 *p[3];
int i; < BR> for(i=0;i<=2;i++)
p[i] = arr[i].ptr;
printf("%s
",(*p)->str);
printf("%s
",(++*p)->str);
printf("%s
",((*p)++)->str);
}
No Answer is Posted For this Question
Be the First to Post Answer
Can we assign string to char pointer?
What is a pragma?
When should we use pointers in a c program?
What is meaning of "Void main" in C Language.
24 Answers Ford, GU, HCL, IBIBS, JUW, TCS,
What's wrong with "char *p; *p = malloc(10);"?
What is the 'named constructor idiom'?
Explain what is page thrashing?
FILE PROGRAMMING
How do I create a directory? How do I remove a directory (and its contents)?
What is the c language function prototype?
What are reserved words with a programming language?
User define function contain thier own address or not.