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...

Is the below things valid & where it will be stored in
memory layout ?
static const volatile int i;
register struct { } ;
static register;

Answer Posted / banavathvishnu

register struct test
{
int i;
char c;
float f;
};

int main()
{
struct test t;
t.c = 'v';
printf("%c",t.c);


getch();
}
The above code is valid
The below code is invalid

register struct test
{
};

int main()
{
struct test t;
t.c = 'v';
printf("%c",t.c);


getch();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does p mean in physics?

1095


What is the need of structure in c?

1182


what is the difference between class and unio?

2413


How do you print only part of a string?

1066


Difference between pass by reference and pass by value?

1208


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1166


How is a structure member accessed?

1185


What tq means in chat?

1170


What is the difference between array and linked list in c?

1203


Dont ansi function prototypes render lint obsolete?

1194


How can I find out if there are characters available for reading?

1165


What is clrscr ()?

1171


Explain what is the concatenation operator?

1230


how to introdu5ce my self in serco

2049


what are the facialities provided by you after the selection of the student.

2329