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

What does void main () mean?

0 Answers  


Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both

3 Answers  


Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!

1 Answers  


how to capitalise first letter of each word in a given string?

0 Answers  


What is a null pointer in c?

0 Answers  


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

0 Answers  


Explain how do you sort filenames in a directory?

0 Answers  


write program on arrays

3 Answers   GE, Polycab,


How to reverse alternate words in a given line of string For Eg: my name is narasimha output : my eman is ahmisaran

0 Answers  


How we can set and clear bit in a byte using macro function?

2 Answers   L&T, Samsung,


What is floating point constants?

0 Answers  


What does 4d mean in c?

0 Answers  


Categories