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

IMS ENGINEERING COLLEGE IMSEC/QF/48

Page 1 of 1
FORMATS Issue No: 02
Assignment -- 06 Issue Date: 1 May 2010
Prepared by: MR Approved by: Director

Subject Name Introduction to programming Subject Code KCS-101


Date of Handout Max Marks
Date of Submission

1. What will be the output of the following program?

#include <stdio.h>
void fun()
{
fun();
Return 0;
}
void fun()
{
auto int I = 1;
register char a = ‘D’;
static int p = 0;
printf(“%d %d %ld”, I, a, p);
}

2. What will be the output of the following program?

#include <stdio.h>
static int y = 1;
int main()
{
static int z;
printf(“%d %d”, y, z);
return 0;
}

You might also like