Both can occur multiple times, but a declaration must occur first.
A definition occurs once, but a declaration may occur many times.
Both can occur multiple times, but a definition must occur first.
A declaration occurs once, but a definition may occur many times.
float, double
short int, double, long int
float, double, long double
double, long int, float
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
Decimal
Binary
Octal
Hexadecimal
What is the output of the following code?
main(){ int a, b; a=b=4; b=a++; printf("%d %d %d %d", a++, --b, ++a, b--);}
5 3 7 3
Syntax error
5 4 5 3
6 2 6 4
char
int
float
double
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
*
+
++
&&
2 bytes
4 bytes
8 bytes
1 byte
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
start()
printf()
main()
getch()
world
addition23
test-name
factorial
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
| |
!
All of the above
&
%
#
infomax
info_max
info max
All of these
4
5
6
Undefined
auto
case
main
default
It is used to define global variables
It is used to define a macro
It is used to include standard or user-defined header files in the program
It is used to include comments in the code
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
it Compare the variable a and the variable b are same.
The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
The value of b is assigned to variable a but if b changes later, it will effect the value of variable a.
The value of variable a is assigned to variable b, and the value of variable b is assigned to variable a.
10
20
0
None
They execute programs faster than compilers
They translate the entire program at once
They translate and execute code line by line
They are not used in modern programming
1return
return1
return
$return_1
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
8
16
1
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
real
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Input data
The program does not require any function.
Output data
The program must have at least one function.
Logical Operator
Conditional Operator
typecast
Ternary
Keywords can be used as variable names
Variable names can contain digits
Variable names do not contain blank spaces
Capital letters can be used in variable names.
int num;
integer num;
num int;
num integer;
getchar()
gets()
scanf()
cin.get()
immutable
mutable
const
volatile
//
/
/*
array
2.5
2
2.000000
2.500000
final
constant
static
true
friend
export
What will be output if you will compile and execute the following c code?
int main(){ int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0;}
2 6
4 6
2 5
4 5
To determine which operator evaluated first from left to right.
To determine the level of an operator in a program.
To determine how an expression involving more than one operator is evaluated.
To check the expression is valid or not.
no of students
7th
myName
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
<
=
>=
<=
System programming language
General purpose language
Data processing language
None of the above
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
put together the file and functions that are required by the program
translate the instructions into a form suitable for execution by the program
load the executable code into the memory and execute them
allow the user to type the program
long double
far double