Viewing code of EX03_12A
// ------ EX03_12A.CPP --------------
//--- Programmed By Rajesh -----

/*
program from exam
Kathmandu university
Exam Paper 2002 comp 102 year I semester II
q no 12.
Trace the output of the following program
a)
*/
#include<stdio.h>
#include<conio.h>
int func1(int cc); /* in question it was int func1(int count);
// No matter what you write there this is just a function prototype
// and even local variables can be same or not.
// The local variables "cc" and "count" may or may not match doesnot matter
// and there may be another local variable instead of count inside void main() */

void main()
{
int a,count;
clrscr();
for(count=1;count<=5;count++)
{
a = func1(count);
printf("%d\n",a);
}
getch();
}


func1(int x)
{
int y = 0;
y+= x;
return (y);
}