C PROGRAM QUESTIONS : PART 3
What is true about fputs function
write to a file
takes two parameters
requires a file pointer
all of above
SHOW ANSWER
Adding to a pointer that points to an array will
Cause an error
Increase the value of the element that the pointer is pointing to
Cause the pointer to point to the next element in the array
None of above
Cause the pointer to point to the next element in the array
SHOW ANSWER
Which is invalid name of identifier
world
addition23
test_name
factorial
SHOW ANSWER
What is dangling pointer in c
if pointer is pointing to a memory location from where variable has been deleted
if pointer is assigned to more than one variable
if pointer is not defined properly
none of above
if pointer is pointing to a memory location from where variable has been deleted
SHOW ANSWER
Wild pointer in C
if pointer is pointing to a memory location from where variable has been deleted
if pointer has not been initialized
if pointer has not been initialized
SHOW ANSWER
Disadvantage of array in C is
We can easily access each element
It is necessary to declare too many variables
It can store only one similar type of data
None of above
It can store only one similar type of data
SHOW ANSWER
What is prototype of a function in C
It is the return type of a function
It is the return data of the function
It is declaration of a function
It is a datatype
It is declaration of a function
SHOW ANSWER
Any type of modification on the parameter inside the function will reflect in actual variable value can be related to
call by value
call by reference
both of above
none of above
SHOW ANSWER
Size of void pointer is
1 byte
2 byte
4 byte
8 byte
SHOW ANSWER
What is wild pointer in c
a pointer which we need to write in future
a pointer which has bad naming convention
a pointer which has no limit
a point which has not initialized
a point which has not initialized
SHOW ANSWER
Is it possible to run program without main() function?
Yes
No
SHOW ANSWER
How many main() function we can have in our project?
2
No Limit
Depends on Compiler
SHOW ANSWER
What is sizeof() in C?
Operator
Function
Macro
None of these
SHOW ANSWER