NEW
Font size
Worksheetsjava
Total questions: 8
Worksheet time: 2hrs 0mins
C programming was originally developed by
Nicolas Wirth
Dinnesh Ritchie
Bjarne Stroustrup
Dennis Ritchie
Which programming language is more faster among these?
Java
PHP
C
Visual Basic
Which statement can print \n on the screen?
printf("\\n");
printf("n\");
printf("n");
printf('\n');
What is output of following program
#include<stdio.h>
main()
{
int a[] = {2,1};
printf("%d", *a);
}
0
1
2
Compile Error
What is a pointer?
A - A keyword used to create variables
B - A variable used to store address of an instruction
C - A variable used to store address of other variable
D - A variable used to store address of a structure
Show Answer
To print a double value which format specifier can be used?
%L
%lf
%Lf
None of the above
Which is valid C expression?
int my_num = 100,000
int my_num = 100000
int my num = 1000
int $my_num = 10000
Which statement can print \n on the screen?
printf("\\n");
printf("n\");
printf("n");
printf('\n');
