NEW
Font size
Worksheetsc program -basic
Total questions: 10
Worksheet time: 5mins
C language is developed by
Tim Berners Lee
Dennis Ritchi
Bjarne Stroustrup
Which is output function in C
int
%d
scanf()
printf()
Which one is input function in C
printf()
scanf()
int
%d
syntax of scanf() in C
scanf("format specifier",variable);
scanf("format specifier",&variable);
scanf("format specifier,variable");
scanf(format specifier,&"variable");
syntax of printf() in C
printf("%format specifier",&variable);
printf("%format specifier",variable);
'printf(%format specifier,"variable");
printf("%format specifier,&variable");
format specifier of int
%i
%c
%d
%b
memory allocation of float
1 byte
2 byte
4 byte
8 byte
relationl operator in C
*
=
==
?=
What is the default state of an integer in c language?
signed
unsigned
there is no default state
#include<stdio.h>
int main()
{
int a=4,b,c;
b = --a;
c = a--;
printf("%d %d %d",a,b,c);
return 0;
}
3 3 2
2 3 2
3 2 2
2 3 3
