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 does void main () mean?
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
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!
how to capitalise first letter of each word in a given string?
What is a null pointer in c?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Explain how do you sort filenames in a directory?
write program on arrays
How to reverse alternate words in a given line of string For Eg: my name is narasimha output : my eman is ahmisaran
How we can set and clear bit in a byte using macro function?
What is floating point constants?
What does 4d mean in c?