KEMBAR78
CS25C01 Computer Programming C QuestionBank | PDF | Computer Program | Programming
0% found this document useful (0 votes)
291 views3 pages

CS25C01 Computer Programming C QuestionBank

Uploaded by

shriashokraj5
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)
291 views3 pages

CS25C01 Computer Programming C QuestionBank

Uploaded by

shriashokraj5
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
You are on page 1/ 3

CS25C01 – Computer Programming: C (Regulation

2025)

Syllabus
UNIT I – BASICS OF C PROGRAMMING
Structure of C program – Tokens – Data types – Variables – Constants – Operators – Expressions
– Precedence – Type conversion – Input/output statements – Decision making statements –
Looping statements.

UNIT II – ARRAYS AND STRINGS


Introduction to arrays – One dimensional arrays – Multi-dimensional arrays – Strings and string
functions.

UNIT III – FUNCTIONS AND STORAGE CLASSES


Functions – Function prototypes – Return types – Recursion – Scope and extent – Storage classes
– Parameter passing – Arrays as function arguments.

UNIT IV – POINTERS AND STRUCTURES


Pointers – Pointer arithmetic – Pointers and arrays – Pointers and functions – Pointers and
structures – Structures and Unions – User defined data types – Typedef – Enumerated data type.

UNIT V – FILE HANDLING


File operations – File pointers – Sequential and random access – Command line arguments.
Question Bank

UNIT I – BASICS OF C PROGRAMMING


1. Explain the structure of a C program with an example.
2. Write a C program to check whether a given number is prime or not.
3. Discuss about different data types in C with examples.
4. Differentiate between while and do-while loops with examples.

UNIT II – ARRAYS AND STRINGS


1. Write a C program to find the sum of all elements in a 1D array.
2. Explain 2D arrays with an example program for matrix addition.
3. Write a program to reverse a string without using library functions.
4. Explain different string handling functions in C with examples.

UNIT III – FUNCTIONS AND STORAGE CLASSES


1. Write a recursive function to find factorial of a number.
2. Differentiate between call by value and call by reference with examples.
3. Explain different storage classes in C with suitable examples.
4. Write a program to demonstrate array passing to functions.

UNIT IV – POINTERS AND STRUCTURES


1. Write a C program to swap two numbers using pointers.
2. Explain pointer arithmetic with examples.
3. Write a program to create a student structure and display details of students.
4. Differentiate between structures and unions with examples.

UNIT V – FILE HANDLING


1. Write a C program to read and write student details into a file.
2. Explain random access in file handling with an example program.
3. Write a program to count number of lines, words, and characters in a text file.
4. Discuss command line arguments with an example.
Lab Manual
Lab Experiments:
1. Programs using I/O statements, operators, expressions.
2. Programs using decision making and looping statements.
3. Programs using arrays and strings.
4. Programs using functions and recursion.
5. Programs using structures and unions.
6. Programs using pointers.
7. Programs on file handling (read, write, count operations).

You might also like