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
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 |
Answer / suyash(nit c.s. eng)
u may mix const to variable it is not correct
| Is This Answer Correct ? | 0 Yes | 1 No |
What are header files why are they important?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
Can the size of an array be declared at runtime?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
how to copy a string without using c function
34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?
How can I remove the leading spaces from a string?
What is sizeof int?
what is the difference between c and c++?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
what is the difference between char * const and const char *?
logic for x=y^n