Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Post New Answer

More C Interview Questions

Can we assign string to char pointer?

0 Answers  


What is a pragma?

0 Answers  


When should we use pointers in a c program?

0 Answers  


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);"?

5 Answers  


What is the 'named constructor idiom'?

0 Answers  


Explain what is page thrashing?

0 Answers  


FILE PROGRAMMING

0 Answers   Wipro,


How do I create a directory? How do I remove a directory (and its contents)?

0 Answers  


What is the c language function prototype?

0 Answers  


What are reserved words with a programming language?

0 Answers  


User define function contain thier own address or not.

2 Answers  


Categories