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 is a macro?

1164


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2352


Why do we write return 0 in c?

1128


What is omp_num_threads?

1135


How many types of functions are there in c?

1227


What is a char c?

1089


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3381


What is difference between structure and union with example?

1123


Can an array be an Ivalue?

1142


Explain how do you print only part of a string?

1280


What is scope rule in c?

1122


What is the difference between struct and typedef struct in c?

1171


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1133


What is the value of uninitialized variable in c?

1088


What does main () mean in c?

1146