-
-
-
-
Virtual Functions
Explain the virtual table generated in memory at the time of declaration of virtual function?
-
Reallocating memory
When reallocating memory if any other pointers point into same piece of memory do you have to readjust these pointers or do they get readjusted automatically?
-
-
String Concatination
How to concatenate the two string without using the predefined functions (such as strcat and strlen)?
-
Function pointer
What is function pointer in C program?
-
Memory allocations of structure
What is the slack memory concept in allocation of structure memory?
-
-
Convert Binary Number to Octal
Write a C program to convert a binary number to its corresponding octal number.
-
-
Funtion pointer
What is the purpose and use of function pointers?
-
Following declarations are sameconst char *s; char const *s;
A) TrueB) False
-
-
> (i - (i -1))));
}
}
">Main(){ signed int bit=512, i=5; for(;i;i--) { printf("%dn", bit = (bit >> (i - (i -1)))); }}
A) 128, 64, 32, 16, 8B) 256, 128, 64, 32, 16C) 512, 256, 128, 64, 32D) 64, 32, 16, 8, 4
-
How will you print % character?
A) printf(“%%”)B) printf(“\%”)C) printf(“%”)D) printf(“%%”)
-
How to print all the combinations of a given integer
Suppose i have given like integer 123.....then print like all the combinations 111,112,113,121......up to 333..
-
Strip Comments
Write a program to read a file, strip the comments and write the output to another file.
-
Find ASCII value.
How to find the ASCII value of an element ?
C Interview Questions
Ans