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 is the difference between struct and typedef struct in c?
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Explain what is the use of a semicolon (;) at the end of every program statement?
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
What is C language ?
WHAT IS FLOAT?
how to sort two array of characters and make a new array of characters.
how many error occurs in C language ?
What are the three constants used in c?
how to write palindrome program?
#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.
What is a void pointer? When is a void pointer used?