Introduction To C Programming (1st Sem-2015) .HTML PDF
Introduction To C Programming (1st Sem-2015) .HTML PDF
Paper: 1.1
Full Marks:80
Time:Three hours
INTRODUCTION TO
C PROGRAMMING
i)Keyword
ii)Identifier
iii)Token
iv)Datatype
v)Relational operator
PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
vi)Goto statement
vii)Formal parameter
x)File mode
3)What will be the output of the following program segment(assume no syntax error) ? (5*2=10)
a)
void main()
{
int i=1, j=1, x;
x=++1 + ++j - --j - --i;
PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
printf("x=%d i=%d j=%d", x,i,j);
}
b)
void main()
{
printf("\"GAUHATI UNIVERSITY\"");
}
c)
void main()
{
int i;
for (i=1; i<10; i++)
{
if(i%2==1)
continue;
printf("%d",i);
}
getch();
}
e)void main()
PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
{
int j=5;
while(j>=1)
{
printf("\n%d",j);
j=j-1;
}
}
i)int=4*6;
ii)name='Guwahati';
iii)3.14*r*r=area;
iv)x=(a+b)(a-b);
v)salary=basic pat + house rent;
vi)area=3.14*r*r
vii)area of circle=3.14*r*r
PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
viii)int *p; folat x; p=&x
v)Read few numbers from the keyboard and write the odd numbers
in one file and the even numbers in another one file.
PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
________________________________
PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com