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 |
In a switch statement, explain what will happen if a break statement is omitted?
Given an unsigned integer, find if the number is power of 2?
How arrays can be passed to a user defined function
a simple c program using 'for' loop to display the output 5 4 3 2 1
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?
What are the different types of objects used in c?
What is call by value in c?
What is ## preprocessor operator in c?
What are the 5 types of organizational structures?
how can use subset in c program and give more example
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
What is the difference between declaring a variable and defining a variable?