0% found this document useful (0 votes)
17 views2 pages

Assignment 'C'

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Assignment 'C'

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment:

Q (1).Explain the various characteristics of C programming language. Describe source file, header file, object file
and executable file in ‘C’ Programming Language

Q (2) Write short notes on

 Various types of control statements in ‘C’ i.e. if-else-if statement, switch-case statement in ‘C’
programming language

 Differentiate between break and continue statement in ‘C’ programming language

 Static(compile time) and Dynamic(run time) allocation in ‘C’ programming language

 Recursive and iterative functions in ‘C’ Programming language

 Structures and Union in ‘C’ Programming language

 Differentiate between call by value and call by reference

 String handling functions like strcat(), strcmp(), strlen() in ‘C’

 Explain the concept of local variables, global variables and static variables in ‘C’ functions

 Explain pointer? How can it be initialized? Explain pointer to pointer with suitable example?

 Differentiate between 1D,2D and multidimensional array

 Describe file handling in ‘C’.What are the various access modes of file? Also explain fopen() and fclose()
in ‘C’

 How variables and constants are declared in’C’.Explain with suitable example?

Q (3) Write a program in ‘C’ to calculate the factorial of a number using recursion?

Q (4).Explain While loop, do while loop and for loop in ‘C’ with proper example

Q (5) Write a program in ‘C’ to implement a simple calculator that can perform addition, subtraction,
multiplication and division

Q (6) Write a program in ‘C’ that can read three integers and print largest of them using if-else statement

Q (7) List and explain various operators in ‘C’ programming language

Q (8) Write a program in C’

 To find average of n numbers

 To convert characters of string to upper case

 To convert characters of string to lower case

 To find biggest of 3 numbers using pointers

 To calculate area of circle using functions

 To find whether a number is even or odd using functions

 Using structure to read and display the information(roll_no, name, fees, DOB) about a student

 Using structure to read and display the information(emp_no, name, salary, age) about an employee of
the organization

You might also like