Posts

Showing posts from March, 2020

String Notes of C Language

Image

Function In C Language

What is Function? Explain different types of functions used in c Language. Function is a block of code that perform a specific task, C function are of two types    Library functions or inbuilt functions    User Defined Functions (UDF) Library Functions: Library functions are those functions which are already written, compiled and kept within a library of c language. There are thousands of library functions and when we require call that function in our program. Examples of Library Function are printf() , scanf(), strlen(), strcat(), strcmp(), strcpy(), sqrt() etc User Defined Function: User defined function are those function which are created by the user. These are the function which are written by the user at the time of writing the program. User defined function mainly consists of the three elements/parts. They are           Function declaration           Function definition           Function call Examples of user defined functions

C Programs for Mid Semester Examination 19-20

Practical Set 1, 2 and 3.(for examination) Even Academic Semester (2019-20) Practical List Subject: Introductory Course in Computer Programming (1ET1000110) [F.Y.B.Tech.: CE/IT/ICT] PRACTICAL SET-1: •        Write a program to print HELLO FRIENDS! •    Write a program that reads two nos. from keyboard and perform addition, subtraction,   multiplication, division and modulo. •         Write a C program to use symbolic constant.(area of circle) •         Write a C Program to swap two numbers. •        Given three values, write a C program to read three values from keyboard and print out the largest of them without using if statement. PRACTICAL SET-2: •          Write a program to select & print the largest of the three nos. using Nested-If-Else statement. •          Write menu driven C program for simple calculator. •          The distance between two cities (In KM) is input through key board. Write a program to convert  and print this distance in