C Programming Placements Practice 2
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.
Table of Contents
C Programming Placements Practice 2
First Program
int abc(char a[]);
int main()
{
char arr[100];
arr[0] = 'a';
arr[1] = 'b';
arr[2] = 'c';
arr[4] = 'd';
abc(arr);
return 0;
}
int abc(char a[])
{
printf("%c\n", *++a);
printf("%c\n", *a++);
}
In the above program, a very important point to discuss is post-increment and pre-increment.
Second Program
int main()
{
int (*ptr[3])();
ptr[0] = a;
ptr[1] = b;
ptr[2] = c;
ptr[2]();
return 0;
}
a()
{
printf("a");
}
b()
{
printf("b");
}
c()
{
printf("c");
}
In the above program, the declaration of the pointer is very important to understand.
C Programming Placements Practice 2 clear concept is clearly explained in the video link provided above.
