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
Why clrscr is used after variable declaration?
What are high level languages like C and FORTRAN also known as?
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
Using which language Test cases are added in .ptu file of RTRT unit testing???
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }
5 Answers C DAC, CDAC, Infosys, Wipro,
When is a null pointer used?
What is abstract data structure in c?
char ch=10;printf("%d",ch);what is the output
How can a number be converted to a string?
what is the use of pointers