Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1 WhaL ls Lhe ouLpuL of prlnLf(d)?

2 prlnLf() luncLlon WhaL ls Lhe dlfference beLween prlnLf() and sprlnLf()?



3 daLa Lypes ln C?

WhaL does sLaLlc varlable mean?


3 WhaL are Lhe dlfferenL sLorage classes ln C?
6 WhaL ls Lhe dlfference beLween sLrlngs and characLer arrays?
7 ulfference beLween consL char* p and char consL* p
8 WhaL ls Lhe dlfference beLween LexL and blnary modes?
9 WhaL ls sLaLlc memory allocaLlon and dynamlc memory allocaLlon?
10WhaL ls a meLhod?
11WhaL ls Lhe dlfference beLween declarlng a varlable and deflnlng a varlable?
12WhaL ls Lhe dlfference beLween a sLrlng and an array?
13WhaL ls an argumenL? ulfferenLlaLe beLween formal argumenLs and acLual argumenLs?
1When ls a swlLch sLaLemenL beLLer Lhan mulLlple lf sLaLemenLs?
13why we are uslng semlcolon aL Lhe end of prlnLf sLaLemenL?
16rogram Lo flnd largesL of Lhree numbers wlLh uslng comparlson operaLor?
17rogram Lo flnd largesL of Lhree numbers wlLhouL uslng comparlson operaLor?
18whaL ls Lhe need for maln funcLlon ln c?
19counL Lhe numbers beLween 100 and 300 LhaL sLar wlLh 2 and ends wlLh 2?
20wrlLe a program Lo flnd a glven no ls dlvlslble by 3 or noL wlLhouL uslng any arLhlmeLlc
operaLors?

1) Write a program in c to print
1
121
12321
1234321
123454321


2) CuL puL of Lhls program?
include<stdio.h>
include<conio.h>
void main()
{
int m=0111,n=20;
printf("%d%d\n",m,n);
getch();
}

3) Write a program in c to print
*
* *
* *
*******

4. define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}


5)main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
}
3807

You might also like