Variable Number of Arguments - Point Out Errors Multiple Questions and Answers.




1.Point out the error in the program?
A. Error: fun() needs return type
B. Error: ptr Lvalue required
C. Error: Invalid declaration of fun(...)
D. No Error

2.Point out the error if any in the following program (Turbo C)?
A. Error: unknown variable ptr
B. Error: Lvalue required for parameter
C. No error and print A a b c
D. No error and print 4 A a b c

3.Point out the error in the program?
A. Error: ptr has to be set at begining
B. Error: ptr must be type of va_list
C. Error: invalid access to list member
D. No Error

4.Point out the error in the program?
A. Error: invalid arguments in function display()
B. Error: too many parameters
C. Error: in va_start(ptr, s);
D. No error

5.Point out the error in the program?
A. Error: invalid va_list declaration
B. Error: var c data type mismatch
C. No error
D. No error and Nothing will print

»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers