C Programming Placements Practice 1

For Complete YouTube Video: Click Here

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

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 1

In this class, we will discuss two programs.

First Program

#include<stdio.h>
int fun();
int main() 
{
	for(fun();fun();fun())
	{
		printf("%d\n", fun());
	}
	return 0;
}
int fun()
{
	int static num = 10;
	return num--;

}

In the above program, the fun() function is called in the for loop we have to find the output of the program.

Second Program

#include<stdio.h>
int main() 
{
	int arr[5] = {1, 2, 3, 5, 7};
	int *ptr = (&arr + 1);
	printf("%d\n%d", *(arr + 1), *(ptr - 1));
	return 0;

}

A clear explanation of the program is made in a video and the link is provided above.

All the content in our channel is totally free.