C Programming Questions Answers - Chapter 1
-
22. What will be output of
#include
void main()
{
char test =`S`;
printf("\n%c",test);
}- S
- Error
- Garbage value
- None of above
Answer :
Option A
-
23. Structures can be used
- to hold different datatypes
- have pointers to structures
- to assign to one another
- all of above
- None
- A only
- B only
- C only
Answer :
Option F
-
24. We can insert pre written code in a C program by using
- #read
- #get
- #include
- #put
Answer :
Option C
-
25. A variable in c
- must have a valid datatype
- can't have a name same as keyword
- must have a name starting with a character
- All of above
Answer :
Option D
-
26. A member is a
- Variable in a structure
- Datatype of structure
- Structure pointer
- None of above
Answer :
Option A
-
27. Which operator in c can't be overloaded
- %
- +
- ::
- -
- Only argument I is strong
- Only argument II is strong
- Either I or II is strong
- Neither I nor II is strong
- Both I and II are strong
Answer :
Option F
-
28. 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 defined properly
- if pointer pointing to more than one variable
- Only assumption I is implicit
- Only assumption II is implicit
- Either I or II is implicit
- Neither I nor II is implicit
- Both I and II are implicit
Answer :
Option