int n=1;
while(1)
{
switch(n)
{
case 1:printf("a");
n++;
continue;
case 2:printf("b");
n++;
continue;
default : printf("c");
break;
}
break;
}
Is that possible to add pointers to each other?
What does sizeof int return?
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
What are the __date__ and __time__ preprocessor commands?
Write a progarm to find the length of string using switch case?
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
What are the advantages and disadvantages of pointers?
WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES
What is a c token and types of c tokens?
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?