C Programming Placements Practice 3

For Complete YouTube Video: Click Here

In this class, we will start C Programming Placements Practice 3.

The entire course of C Programming with more than 110+ videos of content or playlist has already been published.

We have covered all the concepts of C Programming in a very detailed way.

C Programming Complete Playlist on YouTube: Click Here

All the concepts discussed in this course are the models frequently asked in Campus Placements Questions, either in multiple-choice questions or as programming questions.

This entire course will help a Computer Science Engineering Student or a student in any other stream crack the campus placements drives held by Service-based Software or IT companies like TCS, Infosys, CTS, Wipro, Accenture, etc.

C Programming Placements Practice 3

First Program

int fun(int i);
int main()
{
	int i, j;
	for(i=0;i<=5;i++)
	{
		j = fun(i);
	}
	printf("%d", j);	
}
fun(int i)
{
	static int count = 0;
	count = count + 1;
	return count;
}

Second Program

int main()
{
	static int i = 5;
	if(--i)
	{
		main();
		printf("%d\n", i);
	}
}

In both the above programs, we will understand the use of static keywords in a very clear way.

For a clear explanation of the programs click the link provided above.