Which of the following function is used to find the first occurrence of a given string in another string? strrchr() strchr() strstr() strnset() None of these TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} 0 0 0 0 None of These 5 4 3 2 1 Infinite Loop TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 2 5 5 5 5 5 2 4 5 TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. There is no difference between them. Both can occur multiple times, but a declaration must occur first. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 15 11 12 TRUE ANSWER : ? YOUR ANSWER : ?
Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 4 3 10 5 3 3 10 5 5 5 10 5 4 4 10 5 3 4 TRUE ANSWER : ? YOUR ANSWER : ?
The address operator &, cannot act on Members of a structure R-values Local variables Both of the above Arithmetic expressions TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); 9 10 11 12 13 10 11 12 13 14 Infinite loop 10 11 12 13 14 15 None of these TRUE ANSWER : ? YOUR ANSWER : ?
String concatenation means - Combining two strings. Comparing the two strings to define the larger one. Extracting a substring out of a string. Partitioning the string into two strings. Merging two strings. TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45545 54544 45445 54554 TRUE ANSWER : ? YOUR ANSWER : ?