Assignment 20 Stringfunctions Ans
Assignment 20 Stringfunctions Ans
1. Does gets() function scans enter key press by the user during input
a. Yes
b. No
c. Only in Turbo Compiler
d. Only in GCC Compiler
Answer - a. Yes
a. conio.h
b. stdio.h
c. stdlib.h
d. string.h
Answer - d. string.h
a. Function Argument
b. Function Variable
c. Passed Value
d. Passed Data
a. "HiUser"
b. "Hi User"
c. " Hi User "
d. "HiUser "
Answer - a. "HiUser"
16. Return type of function strcmp() is...
a. int
b. char
c. float
d. double
Answer - a. int
Answer - a. String of the first array is smaller than the second array
a. name[0]:bhopal, name[1]:indore
b. name[0]:bhopal, name[1]:ore
c. name[0]:bhopal, name[1]:dore
d. name[0]:bhopal, name[1]:ndore