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




Answers were Sorted based on User's Feedback



Is the below things valid & where it will be stored in memory layout ? static const volatile i..

Answer / sugu

no it is invalid . because volatile means ever changing, but
const means the value wont be changed.

Is This Answer Correct ?    3 Yes 0 No

Is the below things valid & where it will be stored in memory layout ? static const volatile i..

Answer / suyash(nit c.s. eng)

u may mix const to variable it is not correct

Is This Answer Correct ?    0 Yes 1 No

Post New Answer




More C Interview Questions

marge linklist

0 Answers   HCL,


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.

2 Answers  


out put of printf(ā€œ%dā€,printf(ram));

5 Answers  


what is difference between array,strutter,union and pointers

3 Answers   CTS, Mannar Company, Lovely Professional University,


write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..

10 Answers   Bosch, Mind Tree,






#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers   Vector India,


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 Answers  


difference between semaphores and mutex?

1 Answers  


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }

4 Answers   HCL,


print out of string in this format; 1. "rajesh" 2. \n 3. %d

5 Answers   mpower,






Categories