Knowledge in C Programming with Solutions

Write a program to Input 10 numbers and Output 10 numbers by using Single dimentional array.

Write a program to Input 10 numbers and Output 10 numbers by using Single dimentional array.The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a program to Input 10 numbers and Output 10 numbers by using Single dimentional array.

Write a program to Input 10 numbers and Output 10 numbers by using Single dimentional array.The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a c program to Input 4 Numbers and output 4 numbers By using Multidimentional array. (BCA first semester)

Write a c program to Input 4 Numbers and output 4 numbers By using Multidimentional array. (BCA first semester) .The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a program to Enter 4 Numbers and assamble in Assending order By using Multidimentional array.

Write a program to Enter 4 Numbers and assamble in Assending order By using Multidimentional array. The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a program to Enter 4 Numbers and assamble in Assending order By using Multidimentional array.

Write a program to Enter 4 Numbers and assamble in Assending order By using Multidimentional array. The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a program To enter 5 Number and assambe in assanding Order By using Single Dimentional array.

Write a program To enter 5 Number and assambe in assanding Order By using Single Dimentional array. The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a program To enter 5 Number and assambe in assanding Order By using Single Dimentional array.

Write a program To enter 5 Number and assambe in assanding Order By using Single Dimentional array. The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

Write a program To enter 5 Number and assambe in assanding Order By using Single Dimentional array.

Write a program To enter 5 Number and assambe in assanding Order By using Single Dimentional array. The greatest Number. Programming with C (First semester ) Makhanlal chaturvedi national and jounalism university,Bhopal class notes of C programming from Makhanlal Chaturvedi national journalism and communication university,Bhopal. Share with your friends to Help them to learn c programming. This class notes is very important for BCA first semester students .

C Programs

C Programming Language TutorialC language Tutorial with programming approach for beginners and professionals, helps you to understand the C language tutorial easily. Our C tutorial explains each topic with programs.The C Language is developed for creating system applications that directly interact with the hardware devices such as drivers, kernels, etc.C programming is considered as the base for other programming languages, that is why it is known as mother language.It can be defined by the following ways:Mother languageSystem programming languageProcedure-oriented programming languageStructured programming languageMid-level programming language1) C as a mother languageC language is considered as the mother language of all the modern programming languages because most of the compilers, JVMs, Kernels, etc. are written in C language, and most of the programming languages follow C syntax, for example, C++, Java, C#, etc.It provides the core concepts like the array, strings, functions, file handling, etc. that are being used in many languages like C++, Java, C#, etc.2) C as a system programming languageA system programming language is used to create system software. C language is a system programming language because it can be used to do low-level programming (for example driver and kernel). It is generally used to create hardware devices, OS, drivers, kernels, etc. For example, Linux kernel is written in C.It can't be used for internet programming like Java, .Net, PHP, etc3) C as a procedural languageA procedure is known as a function, method, routine, subroutine, etc. A procedural languagespecifies a series of steps for the program to solve the problem.A procedural language breaks the program into functions, data structures, etc.C is a procedural language. In C, variables and function prototypes must be declared before being used.4) C as a structured programming languageA structured programming language is a subset of the procedural language. Structure means to break a program into parts or blocks so that it may be easy to understand.In the C language, we break the program into parts using functions. It makes the program easier to understand and modify.

First C Program

Before starting the abcd of C language, you need to learn how to write, compile and run the first c program.To write the first c program, open the C console and write the following code:#include <stdio.h>    int main(){    printf("Hello C Language");    return 0;   }  #include <stdio.h> includes the standard input output library functions. The printf() function is defined in stdio.h .int main() The main() function is the entry point of every program in c language.printf() The printf() function is used to print data on the console.return 0 The return 0 statement, returns execution status to the OS. The 0 value is used for successful execution and 1 for unsuccessful execution.Or, press ctrl+f9 keys compile and run the program directly.You will see the following output on user screen.You can view the user screen any time by pressing the alt+f5 keys.Now press Esc to return to the turbo c++ console.

printf() and scanf() in C

printf() and scanf() in Cprintf() functionThe printf() and scanf() functions are used for input and output in C language. Both functions are inbuilt library functions, defined in stdio.h (header file).printf() functionThe printf() function is used for output. It prints the given statement to the console.The syntax of printf() function is given below:printf("format string",argument_list); scanf() functionThe scanf() function is used for input. It reads the input data from the console.scanf("format string",argument_list); 

C programs

Program to print sum of 2 numbersLet's see a simple example of input and output in C language that prints addition of 2 numbers.#include<stdio.h>    int main(){    int x=0,y=0,result=0;    printf("enter first number:");  scanf("%d",&x);  printf("enter second number:");  scanf("%d",&y);    result=x+y;  printf("sum of 2 numbers:%d ",result);    return 0;  }    Outputenter first number:9 enter second number:9