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

C Assignment

The document outlines a C programming assignment consisting of five parts, each with multiple questions covering algorithms, flowcharts, C history, library functions, operators, branching, looping, functions, pointers, structures, and file handling. Each assignment requires explanations, comparisons, and examples to illustrate key concepts in C programming. The assignments aim to deepen understanding of fundamental programming principles and practices.

Uploaded by

jrneymar698
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)
39 views2 pages

C Assignment

The document outlines a C programming assignment consisting of five parts, each with multiple questions covering algorithms, flowcharts, C history, library functions, operators, branching, looping, functions, pointers, structures, and file handling. Each assignment requires explanations, comparisons, and examples to illustrate key concepts in C programming. The assignments aim to deepen understanding of fundamental programming principles and practices.

Uploaded by

jrneymar698
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/ 2

C PROGRAMMING ASSIGNMENT

ASSIGNMENT I
1. Define Algorithm and flowchart with the help of suitable example. Explain the different symbols
used in flowchart.
2. Briefly summarize history of C.
3. Explain the structure of c with help of suitable example.
4. What are library functions? Why are they important?
5. What are the different operators that can be used in C? Explain them.
6. Explain pre-increment and post-increment operator with example.
7. What is operator precedence and associativity? Illustrate with an example
8. What is type casting? In what ways type casting can be done? Explain.
ASSIGNMENT II
1. What do you mean by branching? Compare the use of if-else statement with the use of
conditional operator
2. What is the purpose of default keyword used in switch case? Is it possible to compare else if
ladder with switch case?
3. What is looping? Difference between do-while and while loop.
4. Explain the use of break, continue and exit statement.
5. Why is the use of goto statement generally discouraged? Under what conditions might the goto
statement be helpful?
ASSSIGNMENT III
1. What is function? Explain the different type of functions used in C programming.
2. What is recursion? Highlight on its advantages and disadvantages.
3. What is function prototype? What type of errors does function prototyping help to prevent?
4. Explain in brief actual arguments and formal arguments.
5. Differentiate between recursion and iteration.
ASSIGNMENT IV
1. Explain pass by value and pass by reference with suitable example.
2. What is pointer? What are the advantages of using pointer?
3. What is the difference between array and pointer? In what ways are they similar?
4. Differentiate between malloc ( ) and calloc ( ).
5. WAP to demonstrate the concept of function returning pointer and pointer to function?
6. How can you pass string as argument to a function? Give example.
7. WAP to show the concept of realloc ( ) function.
ASSIGNMENT V
1. Differentiate between Structure and Union.
2. Explain nested structure with help of suitable example.
3. Explain different file handling functions.
4. Explain various modes in which file can be opened? Write a program to CREATE and WRITE N
numbers in a file “NUMBER.TXT”. Open this file then read its content and put all even numbers
in one file “EVEN.TXT” and odd numbers in another file “ODD.TXT”.
5. What are the uses of graphical function? Explain the basic graphics function with suitable
program.

You might also like