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
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is an example of structure?
64/square(4)
pierrot's divisor program using c or c++ code
let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................
Magic square
Which is best linux os?
What is the difference between null pointer and void pointer
10 Answers CTS, Manforce, MAQ Software,
what is the different bitween abap and abap-hr?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
how can use subset in c program and give more example
What is structure packing ?