0% found this document useful (0 votes)
18 views1 page

PPS Assignment-3

Uploaded by

viral.prajapati
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)
18 views1 page

PPS Assignment-3

Uploaded by

viral.prajapati
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/ 1

ASSIGNMENT 3 [CO 3]

Q.1. What is array? Demonstrate declaration and initialization of one dimensional array and two
dimensional array with suitable example.
Q.2. Write a program to multiply two matrices A and B of size 3 * 3. Store the answer in matrix C and
display it.
Q.3. What is String? List the various inbuilt string functions and explain all of them with example.
Q.4. Write a program to accept a string and count the number of vowels present in a string.
Q.5. What is pointer? Write a program to do swapping of two elements using pointers.
Q.6. Explain Pointer Arithmetic with proper example.
Q.7. What is structure? Explain with example how to declare a structure and how to initialize it.
Q.8. What is union? How it is different from union?

Q.9. Define a structure type struct personal that would contain person name, date of joining and salary
using this structure to read this information of 5 people and print the same on screen.
Q.10. Explain the following File Handling functions:
1. fseek( ) 2. ftell( ) 3. fread( ) 4. fwrite( ) 5. fscanf( ) 6. fprintf( ) 7.rewind( )
Q.11. Write a C program to copy content of one file to other with the help of file handling functions.

Q.12. What is dynamic memory allocation? Show the use of malloc() and calloc() function with their
syntax.

You might also like