Re: 100 Multiple choice questions in C(New Q?) #include <stdlib.h> int main() { struct x {double d; int i; char c;}; struct x...
int a[100]; int *p=a; for(;a<p+100; a++) *a=0; a=p; Which one of the following describes the error in the sample code above?...
Re: 100 Multiple choice questions in C(New Question?) Which one of the following Standard C functions can be used to sort a string array?...
Re: 100 Multiple choice questions in C (Ask New Questions?) struct node { int id; int lengh; struct node *next; struct node...
Re: 100 Multiple choice questions in C (New Question?) char buf[50]="Hello World"; char *ptr=buf+5; What's the right way to copy 15 bytes from...
char var1[10]; char var2[5]="Forum"; strcpy(var1,var2); printf("%s,%s",var1,var2); What is the output of the above code? Choice 1 No output...
Which is functionally equivalent of arithmetic right shift of signed int p by 2 and is portable? Choice 1 p / 4 (Ans---??) Choice 2 p / 2...
unsigned int p=0; (p^p)||p++||++p||p++; What is the value of the variable "p" after executing the above code? Choice 1 1 Choice 2 2...
Which one of the following is a true statement about pointers? Choice 1 Pointer arithmetic is permitted on pointers of any type.(Ans-- ??)...
How does variable definition differ from variable declaration? Choice 1 Definition allocates storage for a variable, but declaration only informs...
void func(void){ printf("func"); ((char*) 0)=0; } The function func(), triggers memory fault. Which one explains why "func" may NOT be printed...
Which one of the following is a true statement about an lvalue? Choice 1 An lvalue is, by definition, the value appearing on the rightmost...
Which one of the following appends the character '?' to the string str ? Choice 1 strcat(str,"\?"); (Ans--?) Choice 2...
New Question: double d[128]; Considering the above array d which below code will write the contents of the array d to the stream indicated by...
int main(void){free(0)} Which one of the following statements is true regarding the above code in Standard C? Choice 1 The freeing of a...
Separate names with a comma.