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
Explain what are multibyte characters?
Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.
how to TOGGLE Nth bit of variable in a MACRO
Who is the main contributor in designing the c language after dennis ritchie?
where do we use volatile keyword?
What is the use of pragma in embedded c?
What is character constants?
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,
what is output? main() { #define SQR(x) x++ * ++x int i = 3; printf(" %d %d ",SQR(i),i * SQR(i)); } a)9 27 b)35 60 c)20 60 d)15 175
What is meant by gets in c?
How can I find out how much free space is available on disk?
Why does this code crash?