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
the data type used for unlimited value in c and how to do this program
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
What tq means in chat?
Explain the difference between exit() and _exit() function?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.
With the help of using classes, write a program to add two numbers.
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }
differnce between do and do while
How can I increase the allowable number of simultaneously open files?
difference between memcpy and strcpy