No student devices needed. Know more
10 questions
Can we declare function inside structure of C Programming?
Yes
No
Depends on Compiler
Yes but run time error
What is storage class for variable A in below code?
void main()
{
int A;
A = 10;
printf("%d", A);
}
extern
register
auto
static
What is output of below program?
void main()
{
const int a = 10;
printf("%d",++a);
}
11
10
Compilation Error
0
Library function pow() belongs to which header file?
mathio.h
math.h
square.h
stdio.h
Libray function getch() belongs to which header file?
stdio.h
conio.h
stdlib.h
stdlibio.h
What is the following is invalid header file in C?
mathio.h
math.h
string.h
ctype.h
What is output of below code?
void main()
{
char name[]="Cppbuz";
int len;
int size;
len = strlen(name);
size = size_of(name);
printf("%d,%d",len,size);
}
6,6
6,7
7,7
0,0
The concept of two two functions with same name is know as?
Operator Overloading
Function Overriding
Function Overloading
Function renaming
What is meaning of below lines?
void sum (int, int);
sum is a function which takes two int arguments and returns void
sum is function which takes int arguments
it will produce compilation error
Can't comment.
When C Language was invented?
1970
1978
1979
1972
Explore all questions with a free account