0% found this document useful (0 votes)
1 views

assignments - 3to6

The document outlines assignments for the EC/Elect Engineering Department at Government Engineering College Dahod, covering topics in programming such as arrays, strings, functions, pointers, structures, unions, dynamic memory allocation, and file management. Each assignment includes specific questions that require explanations, examples, and distinctions between various programming concepts and functions. The assignments aim to enhance understanding of fundamental programming principles and their applications in C.

Uploaded by

rathodkushal037
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

assignments - 3to6

The document outlines assignments for the EC/Elect Engineering Department at Government Engineering College Dahod, covering topics in programming such as arrays, strings, functions, pointers, structures, unions, dynamic memory allocation, and file management. Each assignment includes specific questions that require explanations, examples, and distinctions between various programming concepts and functions. The assignments aim to enhance understanding of fundamental programming principles and their applications in C.

Uploaded by

rathodkushal037
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

GOVERNMENT ENGINEERING COLLEGE DAHOD

EC /ELECT ENGINEERING DEPARTMENT SUBJECT:


PPS(BE01000121)
ASSIGNMENT 4

1. What is array? Show (a)1D array declaration, initialization and iteration.(b) 2D array
declaration, initialization and iteration.
2. What is String? What are the operations that can be performed on string?
3. Explain String Handling Built-in Functions with Example.
4. What is user defined function? Explain actual argument and formal argument.
5. What is function? Explain function definition, function prototype and function call
with example.
6. List out the categories of functions in C. Explain various categories of functions
with Example.
7. Explain Call by Value and Call by Reference with proper example.
8. What do you understand by recursive function? Explain with Example.
9. Why it is necessary to give the size of an array in array declaration?
GOVERNMENT ENGINEERING COLLEGE DAHOD
EC/ELECT ENGINEERING DEPARTMENT SUBJECT:
PPS(BE01000121)
ASSIGNMENT 5
1. Explain Pointer? Give its Benefits. Also Explain how pointers are declared
and initialized.
2. What is pointer? Which arithmetic operations are not valid on pointers?
3. Explain array of pointers with suitable example.
4. What is pointer to pointer? Write suitable example to demonstrate the
concept.
5. Illustrate the concept of Structure? Explain how can we access structure members?
6. What is Union? Write down the difference between Structure and Union.
7. What is dynamic memory allocation? How does it help in solving Complex
problems of programming?
8. Explain the use of malloc and calloc with their syntax.
9. What is file management? List the different file management function and explain
the various file modes.
10.What is file? Explain various file handling operations in C.
11.Distinguish between the following functions:
 “getc” and “getchar”
 “printf” and “fprintf”
 “feof” and “ferror”
12.Explain the use of fputc() and fputs().

You might also like