Correct Answer:
By reference
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Infinite loop
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Square brackets
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Stdlib.h
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
F=_(float _)vptr;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It converts an uppercase letter of the alphabet to lowercase.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Char
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Array
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For(i=1; i==10; i++);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Intern
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
&
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
An lvalue may appear on the left-hand or right-hand side of an assignment; an rvalue may appear only on the right-hand side.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
LIFO
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Library
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Do...while
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Pre-processor
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Function calls
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0 if str1 and str2 are the same, a negative number if str1 is less than str2, a positive number if str1 is greater than str2
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
In Unix
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
In declarations and definitions
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
X->y
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
(\*player).name
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
printf("%s", string[1][2]);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The scanf() function reads formatted data from the keyboard; The sscanf() function reads formatted input from a string.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Data types; Memory space
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
By using pointers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
During the declaration of the variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Tokens
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Free()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Heap
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Stdout
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Parameter names
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The value of PI needs to be set to 3.141593, not 3.14
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Typeof
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The preprocessor will try to locate the fileA in a predetermined directory path. It will try to locate fileB in the same directory as the source file along with a custom directory path.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
F = *(float *)vptr;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Character arithmetic
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Recursion
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Contiguous to
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Concatenation
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Definite
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Variable.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The starting memory address of
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Tested
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Step
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Specifically 0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Subscripts
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Eclipse
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Memory addresses
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Void
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Height and width.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Inline function
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Two or more
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Subtracts one from the value of its operand.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Iostream header file
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cast
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Indirectly
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The actual value of the variable whose address is stored in the pointer variable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
-> operator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Temporary
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Unicode number
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Perceived benefits, perceived price
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Entrance condition
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Multi-alphabet substitution
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Iomanip.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Fstream
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
VBA
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Member-wise
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
EOF-controlled
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
6
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Diamond
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Priming read
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Viral protein coat
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
BEGIN
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Length_Of()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Anonymous
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For-loops
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Indirectly
Note: This Question is unanswered, help us to find answer for this one
Choose the correct output of the given program.
#include
main()
{
struct b
{
int on:1;
};
struct b v = [1];
printf("%d\n", v.on);
}
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
What would be the output of the given program?
int main()
{
int i =1, j=1;
for ( ; ; )
{
if ( i > 5 )
break;
else
j += i--;
Printf ( "%d\n", j );
i += j;
j= j+7;
}
return 0;
}
Correct Answer:
1 6
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The program may crash if some important data gets overwritten.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0 5 0 0 0 0
Note: This Question is unanswered, help us to find answer for this one
Which of the following is used for dynamically allocating memory?
Correct Answer:
malloc() and calloc()
Note: This Question is unanswered, help us to find answer for this one
Assuming, integer is 2 byte, What will be the output of the program? #include<stdio.h>int main() { printf("%x\n", -2<<2); return 0; }
Correct Answer:
fff8
Note: This Question is unanswered, help us to find answer for this one
#pragma exit is primarily used for?
Correct Answer:
Running a function at exiting the program.
Note: This Question is unanswered, help us to find answer for this one
Many features of C were derived from an earlier language called _____.
Correct Answer:
B
Note: This Question is unanswered, help us to find answer for this one
#include are ___ files and #include “somefile.h” ____ files.
Correct Answer:
They can include all types of file
Note: This Question is unanswered, help us to find answer for this one
Which of the following is an invalid identifier?
Correct Answer:
1foobar
Note: This Question is unanswered, help us to find answer for this one
#include <stdio.h>int main() { char *var = "Programming in C is fun."; } Which of the following format identifier can never be used for the variable var?
Correct Answer:
%c
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a Standard Predefined Macro?
Correct Answer:
__BREAK__
Note: This Question is unanswered, help us to find answer for this one
Which statement will you add in following program to work it correctly? #include<stdio.h>int main() { printf("%f\n",log(360.0)); return 0; }
Correct Answer:
#include<math.h>
Note: This Question is unanswered, help us to find answer for this one
Considering that integer is 4 bytes long, what is the output of the following code? int main() { intfoobar=20, *foo, *bar; foo=&foobar; /* Assume address of foobar is 2100*/ bar=foo; *foo++=*bar++; foobar++; printf("foobar=%d, foo=%d, bar=%d\n", foobar, foo, bar); return 0; }
Correct Answer:
foobar=21, foo=2104, bar=2104
Note: This Question is unanswered, help us to find answer for this one
Considering the following definition of a Union MyUnion, if int occupies 4 bytes, what is the memory size occupied by a variable of type MyUnion? union MyUnion { int foo; float bar; char foobar[16]; };
Correct Answer:
16
Note: This Question is unanswered, help us to find answer for this one
If the storage size of unsigned int is 2 bytes, then the range of values of an unsigned integer is:
Correct Answer:
0 to 65,535
Note: This Question is unanswered, help us to find answer for this one
Assuming integer is 4 bytes long and the address for 'i' is 2000, what is the output for the following code? int main() { int ***foo, **bar, *foobar, i=5; foobar = &i; bar = &foobar; foo = &bar; printf("%d, %d, %d\n", *foobar, **bar, ***foo); return 0; }
Correct Answer:
5, 5, 5
Note: This Question is unanswered, help us to find answer for this one
Assuming integer takes 4 bytes and the starting address of the array 'foo' is 2000, what will be the output of the following code? int main() { int foo[2][3][4][5]; foo[2][3][4][5] = 50; printf("%d",*(*(*(*(foo+2)+3)+4)+5)); return 0; }
Correct Answer:
50
Note: This Question is unanswered, help us to find answer for this one
If short takes 2 bytes of memory, what will be the output of the following program?
int main () {
short foobar[2][3] = { {1,5}, {9,8,7}}; printf("%d", sizeof(foobar)); return 0; }
Correct Answer:
12
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are correct? Check all that apply.
Correct Answer:
The stdio.h header defines variable types, macros, and functions for performing input and output.
The signal.h header defines a variable type, macros and functions to handle different signals reported during a program's execution.
The stdlib.h header defines variable types, macros, and functions for performing general functions.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Bitwise operators can be used to generate random numbers.
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
In order to fetch the address of a variable, we write preceding _____ sign before variable name.
Correct Answer:
Ampersand
Note: This Question is unanswered, help us to find answer for this one
Which keyword is used to declare a variable so that the variable can be accessed by all the functions in all the modules of a program?
Correct Answer:
extern
Note: This Question is unanswered, help us to find answer for this one
Which function is called at program startup?
Correct Answer:
main()
Note: This Question is unanswered, help us to find answer for this one
Which of the following declaration is not supported by C?
Correct Answer:
String str;
Note: This Question is unanswered, help us to find answer for this one
What does the following declaration mean? int(*ptr)[10];
Correct Answer:
ptr is a pointer to an array of 10 integers
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a logical operator?
Correct Answer:
&
Note: This Question is unanswered, help us to find answer for this one
What does argc and argv indicate in command-line arguments? (Assuming: int main(int argc, char *argv[]) )
Correct Answer:
argument count, argument vector
Note: This Question is unanswered, help us to find answer for this one
The keyword ‘break’ cannot be simply used within __?
Correct Answer:
If-else
Note: This Question is unanswered, help us to find answer for this one
How will you free the allocated memory?
Correct Answer:
free(var-name)
Note: This Question is unanswered, help us to find answer for this one
How will you print \n on the screen?
Correct Answer:
printf("\\n")
Note: This Question is unanswered, help us to find answer for this one
What is the built in library function to adjust the allocated dynamic memory size?
Correct Answer:
realloc
Note: This Question is unanswered, help us to find answer for this one
Offset used in fseek() function call can be a negative number.
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Offset used in fseek() function call can be a negative number.
Correct Answer:
foo = fopen ("bar.txt", "a");
Note: This Question is unanswered, help us to find answer for this one
Which of the following correctly shows the hierarchy of arithmetic operators in C?
Correct Answer:
/ * + -
Note: This Question is unanswered, help us to find answer for this one
Which of the following operations can be performed on the file "NOTES.TXT" using the below code? FILE *fp; fp = fopen("NOTES.TXT", "r+");
Correct Answer:
Read and Write
Note: This Question is unanswered, help us to find answer for this one
Which storage class is the default storage class for all local variables?
Correct Answer:
auto
Note: This Question is unanswered, help us to find answer for this one
Which keyword is used to retain value of a variable in multiple function invocations?
Correct Answer:
static
Note: This Question is unanswered, help us to find answer for this one
An array elements are always stored in ____ memory locations.
Correct Answer:
Address
Note: This Question is unanswered, help us to find answer for this one
An array elements are always stored in ____ memory locations.
Correct Answer:
Sequential
Note: This Question is unanswered, help us to find answer for this one
An array elements are always stored in ____ memory locations.
Correct Answer:
The address of the first element of the array
Note: This Question is unanswered, help us to find answer for this one
A file written in text mode can be read back in binary mode.
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Smallest element of an array is called as __.
Correct Answer:
Lower Bound
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following program? main( ) { int foo = ('k' - 'j')/4; printf("foo = %d",foo); return 0; }
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
For binary files, a ___ must be appended to the mode string.
Correct Answer:
“b”
Note: This Question is unanswered, help us to find answer for this one
What type of array is generally generated in Command-line argument?
Correct Answer:
Jagged Array
Note: This Question is unanswered, help us to find answer for this one
Declare the following statement? "An array of three pointers to chars"
Correct Answer:
char *ptr[3];
Note: This Question is unanswered, help us to find answer for this one
Left shifting a number by 1 is always equivalent to multiplying it by 2.
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Which function is used to check if the end of the file has been reached in C?
Correct Answer:
feof()
Note: This Question is unanswered, help us to find answer for this one
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
Correct Answer:
It may vary from one operating system to another
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the program ? #include<stdio.h> int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }
Correct Answer:
3, 2, 15
Note: This Question is unanswered, help us to find answer for this one
Which header file should be included to use functions like malloc() and calloc()?
Correct Answer:
stdlib.h
Note: This Question is unanswered, help us to find answer for this one
Where is the file searched, when #include is used with angular brackets <>?
Correct Answer:
System Libraries
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a Preprocessor Directive in C?
Correct Answer:
#elseif
Note: This Question is unanswered, help us to find answer for this one
#include <stdio.h> is a __?
Correct Answer:
Preprocessor directive
Note: This Question is unanswered, help us to find answer for this one
Which of the following are C preprocessors?
Correct Answer:
All of the mentioned.
Note: This Question is unanswered, help us to find answer for this one
C preprocessors can have compiler specific features.
Correct Answer:
true
Note: This Question is unanswered, help us to find answer for this one
Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer ?
Correct Answer:
2 Bytes
Note: This Question is unanswered, help us to find answer for this one
What is (void*)0?
Correct Answer:
Representation of NULL pointer
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following program? int main () { int foo = 1; do{ printf("%d ", foo); foo++; }while( foo <= 10 ) return 0; }
Correct Answer:
The program will not execute due to an error
Note: This Question is unanswered, help us to find answer for this one
What is used to convert a C program into machine language for execution?
Correct Answer:
Assembler
Note: This Question is unanswered, help us to find answer for this one
Pick the incorrect fopen statement:
Correct Answer:
None of the above
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following code snippet? #include<stdio.h> main() { int x = 5; if(x=5) { if(x=5) break; printf("Hello"); } printf("Hi"); }
Correct Answer:
Compile error
Note: This Question is unanswered, help us to find answer for this one
Which function is used to de-allocate the memory allocated using malloc()?
Correct Answer:
free()
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following code? int main() { int a=5; if(a=10) printf("Value of a=%d",a); else printf("Value of a=%d",a); return 0; }
Correct Answer:
Value of a=10
Note: This Question is unanswered, help us to find answer for this one
Which of the following is an invalid operator?
Correct Answer:
<>
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following program? #include<stdio.h> int main() { int y=128; const int x=y; printf("%d\n",x); return 0; }
Correct Answer:
128
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following code? main() { int foo = 10; foo = foo << 2; printf("foo = %d",foo); }
Correct Answer:
foo = 40
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the correct usage of conditional operator in C?
Correct Answer:
max = a>b ? a>c?a:c:b>c?b:c
Note: This Question is unanswered, help us to find answer for this one
What is the output of this C code? #include <stdio.h> void main() { int x = 1, y = 0, z = 5; int a = x && y || z++; printf("%d", z); }
Correct Answer:
6
Note: This Question is unanswered, help us to find answer for this one
Which bit wise operator is suitable for turning off a particular bit in a number?
Correct Answer:
& operator
Note: This Question is unanswered, help us to find answer for this one
Bit wise & and | are unary operators.
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Which format specifier can be used to print a float value?
Correct Answer:
%f
Note: This Question is unanswered, help us to find answer for this one
Which format specifier can be used to print a float value?
Correct Answer:
1, 2, 3
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following program? #include<stdio.h> int main() { int k=1; printf("%d==1 is " "%s\n",k,k==1?"TRUE":"FALSE"); return 0; }
Correct Answer:
1==1 is TRUE
Note: This Question is unanswered, help us to find answer for this one
In the following code, the p2 is Integer pointer or Integer? typedef int *ptr; ptr p1,p2;
Correct Answer:
Integer Pointer
Note: This Question is unanswered, help us to find answer for this one
Which of the following cannot be a variable name in C?
Correct Answer:
Volatile
Note: This Question is unanswered, help us to find answer for this one
If there is any error while opening a file, fopen will return?
Correct Answer:
NULL
Note: This Question is unanswered, help us to find answer for this one
What is the following program doing? #include<stdio.h> main() { FILE *stream=fopen("a.txt",'r'); }
Correct Answer:
Compile error
Note: This Question is unanswered, help us to find answer for this one
Can you combine the following two statements into one? char *p; p = (char*) malloc(100);
Correct Answer:
char *p = (char*)malloc(100);
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following program? #include<stdio.h> int main() { const int x=5; const int *ptrx; ptrx=&x; *ptrx=10; printf("%d\n",x); return 0; }
Correct Answer:
Error
Note: This Question is unanswered, help us to find answer for this one
Let x be an array. Which of the following operations are illegal? a) ++x b) x+1 c) x++ d) x*2
Correct Answer:
a, c and d
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following code? main() { int foo = 20; int bar = 3; float foobar; foobar = (float) foo / bar; foo = foobar; printf("foobar = %5.3f\nfoo = %d", foobar, foo ); }
Correct Answer:
foobar = 6.667 foo = 6
Note: This Question is unanswered, help us to find answer for this one
All keywords in C are in _____.
Correct Answer:
LowerCase letters
Note: This Question is unanswered, help us to find answer for this one
What does fp point to in the program ? #include<stdio.h> int main() { FILE *fp; fp=fopen("trial", "r"); return 0; }
Correct Answer:
A structure which contains a char pointer which points to the first character of a file.
Note: This Question is unanswered, help us to find answer for this one
Which of the following syntax is correct for command-line arguments?
Correct Answer:
int main(int var, char *varg[])
Note: This Question is unanswered, help us to find answer for this one
The preprocessor provides the ability for ___.
Correct Answer:
All of the mentioned.
Note: This Question is unanswered, help us to find answer for this one
Which type of files can’t be opened using fopen()?
Correct Answer:
None of the mentioned
Note: This Question is unanswered, help us to find answer for this one
What does the following declaration signify? char *arr[10];
Correct Answer:
arr is an array of 10 character pointers
Note: This Question is unanswered, help us to find answer for this one
Which of the following operators is used to access the data members of a structure?
Correct Answer:
.
Note: This Question is unanswered, help us to find answer for this one
Point out the error in the following code: struct emp { int ecode; struct emp *e; }
Correct Answer:
Error in structure declaration
Note: This Question is unanswered, help us to find answer for this one
Which operator connects the structure name to its member name?
Correct Answer:
. (dot)
Note: This Question is unanswered, help us to find answer for this one
The prototype of a function can be used to :
Correct Answer:
Declare a function
Note: This Question is unanswered, help us to find answer for this one
Which keyword is used to transfer control from a function back to the calling function?
Correct Answer:
return
Note: This Question is unanswered, help us to find answer for this one
Which operation is illegal in structures?
Correct Answer:
Typecasting of structure
Note: This Question is unanswered, help us to find answer for this one
Point out the error in the following program(if it is compiled with Turbo C compiler)? #include<stdio.h> int main() { display(); return 0; } void display() { printf("Upwork.com"); }
Correct Answer:
display() is called before it is defined
Note: This Question is unanswered, help us to find answer for this one
Which of the following can not be a member in a structure?
Correct Answer:
A function
Note: This Question is unanswered, help us to find answer for this one
What is the scope of a function?
Correct Answer:
From the point of declaration to the end of the file being compiled.
Note: This Question is unanswered, help us to find answer for this one
In which stage the following code : #include<stdio.h> gets replaced by the contents of the file stdio.h?
Correct Answer:
During preprocessing
Note: This Question is unanswered, help us to find answer for this one
Which of the following functions can be used to set the file position indicator to the beginning of the file?
Correct Answer:
fseek()
rewind()
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Point out the error in the program? typedef struct data mystruct; struct data { int x; mystruct *b; };
Correct Answer:
No Error
Note: This Question is unanswered, help us to find answer for this one
True or False: "The expressions *ptr++ and ++*ptr are same"
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Which of the following is a correct way to initialize an array?
Correct Answer:
int n[6] = { 2, 4, 12, 5, 45, 5 };
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a valid variable declaration?
Correct Answer:
int 3_a;
Note: This Question is unanswered, help us to find answer for this one
Which of the following is a correct format for declaration of a function?
Correct Answer:
return-type function-name(argument type);
Note: This Question is unanswered, help us to find answer for this one
When a program uses command line arguments, then argv[0]?
Correct Answer:
holds the name of the program itself.
Note: This Question is unanswered, help us to find answer for this one
Which of the following is TRUE about argv?
Correct Answer:
It is an array of character pointers
Note: This Question is unanswered, help us to find answer for this one
What is argc used for?
Correct Answer:
It is the number of arguments passed to the program
Note: This Question is unanswered, help us to find answer for this one
How many times "Upwork" gets printed? #include<stdio.h> int main() { int x; for(x=-1;x<=10;x++) { if(x<5) continue; else break; printf("Upwork"); } return 0; }
Correct Answer:
0 times
Note: This Question is unanswered, help us to find answer for this one
What is the output of this C code? int main() { int i = 10; void *p = &i; printf("%d\n", (int)*p); return 0; }
Correct Answer:
Compile time error
Note: This Question is unanswered, help us to find answer for this one
log(x) function defined in math.h header file is
Correct Answer:
Natural base logarithm.
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following code? int main() { FILE *foobar = stdout; int foo; fprintf(foobar, "%d ", 20); fflush(stdout); fprintf(stderr, "%d", 99); return 0; }
Correct Answer:
20 99
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following code:- #include<stdio.h> #include<stdarg.h> void display(int num,...); int main() { display(4,'A','B','C','D'); return 0; } void display(int num, ...) { char c,c1; int j; va_list ptr,ptr1; va_start(ptr,num); va_start(ptr1,num); for(j=1;j<=num;j++) { c=va_arg(ptr, int); printf("%c,",c); c1=va_arg(ptr1, int); printf("%d\n",c1); } }
Correct Answer:
A,65 B,66 C,67 D,68
Note: This Question is unanswered, help us to find answer for this one
How many times i value is checked in the below code? #include <stdio.h> int main() { int i = 0; do { i++; printf("in while loop\n"); } while (i < 3); }
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
If the two strings are identical, the strcmp() function returns?
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
The first argument in command line arguments is?
Correct Answer:
The number of command-line arguments the program was invoked with.
Note: This Question is unanswered, help us to find answer for this one
How many times the program will print "Hello World" ? #include<stdio.h> int main() { printf("Hello World"); main(); return 0; }
Correct Answer:
Till stack overflows
Note: This Question is unanswered, help us to find answer for this one
What will be the output of following code?
int' main()
{
int i;
i = 0;
for (i = 1; i <2; i++)
{
i++;
printf( "%d", i );
continue;
printf( "%d", i );
}
return 0;
}
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the following code snippet? #include<stdio.h> main() { unsigned char a=255; a = a+1; printf("%d",a); return 0; }
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the following code snippet? main() { int arr[10]; int a = sizeof(arr); printf("%d\n",a); return 0; }
Correct Answer:
40
Note: This Question is unanswered, help us to find answer for this one
Which standard function is used to clear memory allocated by the malloc() function?
Correct Answer:
free
Note: This Question is unanswered, help us to find answer for this one
What is the output of the following program ? main() { int u = 1, v = 3; printf("%d %d",u,v); funct1(&u,&v); printf(" %d %d\n",u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; }
Correct Answer:
1 3 0 0
Note: This Question is unanswered, help us to find answer for this one
In which area of memory are static variables allocated?
Correct Answer:
stack
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
enum {red, green, blue = 0, white};
printf("%d %d %d %d", red, green, blue, white);
return 0;
}
Correct Answer:
0 1 0 1
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a valid mode for opening a file?
Correct Answer:
i
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a string function?
Correct Answer:
strcomp()
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
void func()
{
static int i = 1;
int j = 1;
i++;
j++;
printf("%d %d ",i,j);
}
void main()
{
func();
func();
func();
}
Correct Answer:
2 2 3 2 4 2
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
void main()
{
int arr[][2] = {1,2,3,4,5,6};
printf("%d",arr[2][1]);
}
Correct Answer:
6
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a type of operator ?
Correct Answer:
Rational
Note: This Question is unanswered, help us to find answer for this one
From which of the following loop or conditional constructs, is "break"
used for an early exit?
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
Which of the following comparison statements will be true if an
integer is 16 bits and a long is 32 bits on a machine?
Correct Answer:
-1L < 1U
-1L > 1UL
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
signed char i = 1;
for (; i<=255; i++)
printf ("%d ",i);
return 0;
}
Correct Answer:
1 2 3 . . . 127 -128 -127 ... 0 1 2 3 . . . (infinite times)
Note: This Question is unanswered, help us to find answer for this one
An array is defined with the following statement in a file, file1.c
int a[ ] = { 1, 2, 3, 4, 5, 6 };
In another file, file2.c, the following code snippet is written to use the
array a:
extern int a[];
int size = sizeof(a);
What is wrong with the above code snippet?
Correct Answer:
An extern array of unspecified size is an incomplete type.
The size of the operator during compile time is unable to
learn the size of an array that is defined in another file
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the correct way of initializing a twodimensional array?
Correct Answer:
a, b and c
Note: This Question is unanswered, help us to find answer for this one
Which of the following standard functions is used to close a file?
Correct Answer:
fclose()
Note: This Question is unanswered, help us to find answer for this one
Study the following code:
int n = 2;
int a[n];
What is the error in the above code?
Correct Answer:
A constant value has to be given in place of a variable for
array declaration
Note: This Question is unanswered, help us to find answer for this one
What will happen when the following code is executed?
{
int num;
num =0;
do {-- num;
printf("%d\n", num);
num++;
} while (num >=0);
}
Correct Answer:
There will be a compilation error
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
int i=5;
char option = 5;
switch(option)
{
case '5':
printf("case : 1 \n");
break;
case i:
printf("case : 2 \n");
break;
default:
printf("case : 3 \n");
break;
}
return 0;
}
Correct Answer:
Result in compilation error
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
#define max(a, b)((a) > (b)?(a):(b))
main()
{
int a=4, c = 5;
printf("%d ", max(a++, c++));
printf("%d %d\n", a,c);
}
Correct Answer:
6 5 7
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
#define func(t, a, b) { t temp; temp=a; a=b; b=temp; }
main()
{
int a=3, b=4;
float c=4.5, d = 5.99;
func(int, a, b);
func(float, c, d);
printf("%d %d ", a, b);
printf("%.2f %.2f\n", c, d);
}
Correct Answer:
4 3 5.99 4.50
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
int a[5] = {1,4,5,6,9};
printf("%d\t", *a); //Line 1
printf("%d", *++a); //Line 2
return 0;
}
Correct Answer:
Compilation Error in "Line 2"
Note: This Question is unanswered, help us to find answer for this one
If a two dimensional array arr[4][10](an array with 4 rows and 10 columns) is to be passed in a function, which of the following would be the valid parameters in the function definition?
Correct Answer:
fn(int arr[4][10])
fn(int arr[][10])
fn(int (*fn)[13])
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Given the array:
int num[3][4]=
{
{3,6,9,12},
{15,25,30,35},
{66,77,88,99}
};
what would be the output of *(*(num+1))?
Correct Answer:
15
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
void main()
{
int arr[5]={1,2,3,4,5};
printf("%d\n", *(arr+4));
}
Correct Answer:
5
Note: This Question is unanswered, help us to find answer for this one
Is the following statement correct? If not, why not? If yes, what is the
size of the array?
int array[][3] = { {1,2}, {2,3}, {3,4,2} };
Correct Answer:
Yes, the size is three columns by three rows
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
char *s="Hello World";
char s1[20], s2[20];
int len = sscanf(s,"%s",s1);
printf("%s : %d", s1, len);
}
Correct Answer:
Hello : 1
Note: This Question is unanswered, help us to find answer for this one
Which of the following functions is used to extract formatted input
from a file?
Correct Answer:
fscanf()
Note: This Question is unanswered, help us to find answer for this one
What does the following function do?
int fn(unsigned int x)
{
int count = 0;
for(; x!=0; x&=(x-1))
count++;
return count;
}
Correct Answer:
Returns the minimum number of bits required to represent
the number x
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following program?
#include <assert.h>
main()
{
int n = 5;
assert(n > 3); //statement 1
n = n+2;
assert(n > 7);//statement 2
return 0;
}
Correct Answer:
Assertion 'n > 7' failed; Program aborts at statement 2
Note: This Question is unanswered, help us to find answer for this one
What is the error in the following statement where str is a character
array and the statement is supposed to traverse through the whole
character string str?
for(i=0;str[i];i++)
Correct Answer:
The condition should be str[i] != '\0'
Note: This Question is unanswered, help us to find answer for this one
In order to read structures/records from a file, which function will you
use?
Correct Answer:
fread()
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
int b = 5;
main()
{
void addup (int b);
int i;
for(i=1; i<=5; i++)
addup(1);
return 0;
}
void addup (int b)
{
static int v1;
v1 = v1+b;
printf("%d ", v1);
}
Correct Answer:
1 2 3 4 5
Note: This Question is unanswered, help us to find answer for this one
Which of the following declarations of structures is/are valid?
1)
struct node {
int count;
char *word;
struct node next;
}Node;
2)
struct node {
int count;
char *word;
struct node *next;
}Node;
3)
struct node {
int count;
char *word;
union u1 {
int n1;
float f1;
}U;
}Node;
Correct Answer:
23
Note: This Question is unanswered, help us to find answer for this one
Which file header is to be included for file handling in a C program?
Correct Answer:
stdio.h
Note: This Question is unanswered, help us to find answer for this one
Given the following array:
char books[][40]={
"The Little World of Don Camillo",
"To Kill a Mockingbird",
"My Family and Other Animals",
"Birds, Beasts and Relatives"
};
what would be the output of printf("%c",books[2][5]);?
Correct Answer:
m
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
char i = 'A';
char *j;
j = & i;
*j = *j + 32;
printf("%c",i);
Correct Answer:
a
Note: This Question is unanswered, help us to find answer for this one
Identify the incorrect statement.
Correct Answer:
Memory is reserved when a structure label is defined
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
char *str1 = "Hello World";
strcat(str1, '!');
printf("%s", str1);
Correct Answer:
The code snippet will throw a compilation error
Note: This Question is unanswered, help us to find answer for this one
What is the return value in case a file is not opened successfully by
using fopen()?
Correct Answer:
NULL
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements is/are valid and correct?
1.char amessage[] = "lmnop";
amessage++;
2.char *pmessage = "abcde";
(*pmessage)++;
3.char amessage[] = "lmnop";
(*amessage)++;
4.char *pmessage = "abcde";
pmessage++;
Correct Answer:
34
Note: This Question is unanswered, help us to find answer for this one
The declaration int (*p[5])() means:
Correct Answer:
p is an array of pointers to functions the return type of
which is an integer
Note: This Question is unanswered, help us to find answer for this one
What is wrong with the following statement?
int func();
Correct Answer:
There is nothing wrong with the statement
Note: This Question is unanswered, help us to find answer for this one
Consider the following code.
int i = 4, *j, *k;
Which one of the following statements will not work?
Correct Answer:
j = j * 2;
Note: This Question is unanswered, help us to find answer for this one
Given the following array:
int a[8] = {1,2,3,4,5,6,7,0};
what would be the output of
printf("%d",a[4]); ?
Correct Answer:
5
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
int funr(int x, int y)
{
if(x <= 0)
{
return y;
}
else
{
return (1+funr(x-1,y));
}
}
void main()
{
printf("%d",funr(2,3));
}
Correct Answer:
5
Note: This Question is unanswered, help us to find answer for this one
Given the array:
int num[3][4]= {
{3,6,9,12},
{15,25,30,35},
{66,77,88,99}
};
what would be the output of *(*(num+1)+1)+1?
Correct Answer:
26
Note: This Question is unanswered, help us to find answer for this one
Which function will you use to write a formatted output to the file?
Correct Answer:
fprintf()
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a file related function?
Correct Answer:
puts()
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
void main()
{
unsigned char a=25;
a = ~a;
signed char b = 25;
b = ~b;
printf("%d %d ", a, b);
}
Correct Answer:
230 -26
Note: This Question is unanswered, help us to find answer for this one
What will happen if you assign a value to an element of an array the
subscript of which exceeds the size of the array?
Correct Answer:
You will get an error message from the compiler
Note: This Question is unanswered, help us to find answer for this one
Given the operators:
1) *
2) /
3) %
What would be the order of precedence?
Correct Answer:
All have the same precedence
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
#define max(a, b) ((a) > (b)?(a):(b))
main()
{
int a=4;
float b=4.5;
printf("%.2f\n",max(a, b));
}
Correct Answer:
4.50
Note: This Question is unanswered, help us to find answer for this one
What is the function to concatenate two strings?
Correct Answer:
strcat()
Note: This Question is unanswered, help us to find answer for this one
Which is/are the type/s of memory allocation that needs/need the
programmer to take care of memory management?
Correct Answer:
Dynamic memory allocation
Memory allocation on stack
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements will result in a compilation error?
Correct Answer:
int n=5, x; x= ++n++;
int n=5, x; x= (n+1)++;
int n=5, x=6; x= (n+x)++;
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following is/are the correct signature/s of main with
command line arguments?
Correct Answer:
int main(int argc, char **argv)
int main(int argc, char *argv[])
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
#define Name Manish
main()
{
printf("My name""Name");
}
Correct Answer:
My nameName
Note: This Question is unanswered, help us to find answer for this one
By which file function you can position the file pointer in accordance
with the current position?
Correct Answer:
fseek()
Note: This Question is unanswered, help us to find answer for this one
Which function will convert a string into a double precision quantity?
Correct Answer:
atof()
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
void main()
{
char arr1[] = "REGALINT";
printf("%d,",strlen(arr1));
printf("%d",sizeof(arr1));
}
Correct Answer:
8,9
Note: This Question is unanswered, help us to find answer for this one
What will happen when the following code is executed?
void main()
{
char arr1[] = "REGALINT";
char *arr2;
arr2 = arr1;
printf("%d,",sizeof(arr1));
printf("%d",sizeof(arr2));
}
Correct Answer:
9,4
Note: This Question is unanswered, help us to find answer for this one
Given the following array:
char books[][40]={
"The Little World of Don Camillo",
"To Kill a Mockingbird",
"My Family and Other Animals",
"Birds, Beasts and Relatives"
};
what would be the output of printf("%s",books[3]);?
Correct Answer:
Birds, Beasts and Relatives
Note: This Question is unanswered, help us to find answer for this one
What happens when the continue keyword is encountered in the 'for
loop'?
Correct Answer:
Control passes to the condition of the loop
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
void main()
{
char arr[] = {'R','A','M','\0'};
printf("%d",strlen(arr));
}
Correct Answer:
3
Note: This Question is unanswered, help us to find answer for this one
Select the correct statement about arrays.
Correct Answer:
An array declared as A[100][100] can hold a maximum of
10000 elements
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
char *pmessage = "asdfgh";
*pmessage++;
printf("%s", pmessage);
return 0;
}
Correct Answer:
sdfgh
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
void addup (int b);
addup(b);
return 0;
}
int b = 5;
void addup (int b)
{
static int v1;
v1 = v1+b;
printf("%d ", v1);
}
Correct Answer:
Will result in Compilation Error
Note: This Question is unanswered, help us to find answer for this one
The declaration int *(*p)[10] indicates:
Correct Answer:
p is a pointer to an array of integer pointers
Note: This Question is unanswered, help us to find answer for this one
What is the return type of the following function declaration?
func(char c);
Correct Answer:
void
Note: This Question is unanswered, help us to find answer for this one
Read the statement below:
extern int a;
Which of the following statement/s pertaining to the above statement
is/are correct?
Correct Answer:
Declares an integer variable a; Does not allocate the
storage for the variable
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
enum {red, green, blue = 6, white};
printf("%d %d %d %d", red, green, blue, white);
return 0;
}
Correct Answer:
0 1 6 7
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following program, assuming that data
type short takes 2 bytes for storage?
struct node
{
unsigned char bit1 : 1;
unsigned char bit2 : 1;
unsigned short bit3 : 7;
} node1;
main()
{
int size = sizeof(node1);
printf("%d", size);
}
Correct Answer:
2
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main()
{
int n=5, x;
x = n++;
printf("%d ", x);
x = ++n;
printf("%d ", x++);
printf("%d", x);
return 0;
}
Correct Answer:
5 7 8
Note: This Question is unanswered, help us to find answer for this one
Which of the following is a function for formatting data in memory?
Correct Answer:
sprintf()
Note: This Question is unanswered, help us to find answer for this one
What does the argv[0] represent?
Correct Answer:
The program name
Note: This Question is unanswered, help us to find answer for this one
What will be printed on the standard output as a result of the following
code snippet?
void main()
{
int i,j,k;
i=4;
j=30;
k=0;
k=j++/i++;
++k;
printf("%d %d %d",i,j,k);
}
Correct Answer:
5 31 8
Note: This Question is unanswered, help us to find answer for this one
Which function will convert a string into an integer?
Correct Answer:
atoi()
Note: This Question is unanswered, help us to find answer for this one
Which function will you use to position the file pointer at the beginning
of the file?
Correct Answer:
a or b
Note: This Question is unanswered, help us to find answer for this one
Which function allocates memory and initializes elements to 0?
Correct Answer:
calloc()
Note: This Question is unanswered, help us to find answer for this one
Which of the following sets of conversion statements may result in the
loss of data?
Correct Answer:
int i;
char c;
c=i;
i=c;
int i;
float f;
i=f;
f=i;
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a storage type?
Correct Answer:
global
Note: This Question is unanswered, help us to find answer for this one
Suppose there is a file a.dat which has to be opened in the read
mode using the FILE pointer ptr1, what will be the correct syntax?
Correct Answer:
ptr1 = fopen("a.dat","r");
Note: This Question is unanswered, help us to find answer for this one
Which header file are methods(or macros) isalpha(), islower() a part
of?
Correct Answer:
ctype.h
Note: This Question is unanswered, help us to find answer for this one
Given the following array declaration:
int a[2][3][4]
what would be the number of elements in array a?
Correct Answer:
24
Note: This Question is unanswered, help us to find answer for this one
Study the following code where num is an integer array and n is the
length of the array:
for(i=0;i<n-1;i++)
{
for(j=i+1;j<n;j++)
{
if(num[i] > num[j])
{
var=num[i];
num[i]=num[j];
num[j]=var;
}
}
}
What does the above code do?
Correct Answer:
It sorts the array in the ascending order
Note: This Question is unanswered, help us to find answer for this one
Read the following two declaration statements.
1. #include
2. #include "stdio.h"
Which of the following statements pertaining to the above two
statements are correct?
Correct Answer:
For statement 1, the header file will be searched in the
standard system directories such as "/usr/include"
For statement 2, the header file will be searched first in
the local directory and then in the standard system
directories such as "/usr/include"
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
int Recur(int num)
{
if(num==1 || num==0)
return 1;
if(num%2==0)
return Recur(num/2)+2;
else
return Recur(num-1)+3;
}
int main()
{
int a=9;
printf("%d\n", Recur(a));
return 0;
}
Correct Answer:
10
Note: This Question is unanswered, help us to find answer for this one
What would be printed on the standard output as a result of the
following code snippet?
main( )
{
char *str[ ] = {
"Manish"
"Kumar"
"Choudhary"
};
printf ( "\nstring1 = %s", str[0] );
printf ( "\nstring2 = %s", str[1] );
printf ( "\nstring3 = %s", str[2] );
}
Correct Answer:
string1 = ManishKumarChoudhary
string2 = (null)
string3 = (null)
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements are correct for the keyword register?
Correct Answer:
It is a storage-class-specifier
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the correct way of initializing a two-dimensional array?
Correct Answer:
a, b and c
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
a=22 b=24
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Rahul
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
close
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
1 3
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Compilation error
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
*p
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The behavior is implementation-defined
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ELANCE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
!
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Depends on the implementation, but always some number >= 1.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
doThis(array)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
double
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
macros used with variable argument functions
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Unknown, it depends on what malloc will return.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Undefined
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
*(foo + 4)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
6
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
float, double, long double
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
(both of these)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
its size depends on the implementation
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
yes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
address of variable a
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It depends on the compiler and the hardware architecture.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
real
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
var
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
==
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
An int
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
No
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
5
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Logical operator
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
curly braces
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Address of array
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It will make p point to an uninitialized two-byte piece of memory allocated from the heap.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It will include dir/x.h if __APPLE__ is defined, or other_dir/x.h, otherwise.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All answers are right.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
intern
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Stack overflow
Note: This Question is unanswered, help us to find answer for this one
C Programming MCQs | Topic-wise