Define pointer and its use. Explain array of pointer with example. Write program to swap the values by using call by reference concept.
Concept: Array
Write a program to create two integer of size 8 and 7. Initialize the arrays with random values. Sort the arrays in ascending order with the help of user defined function namely “sort array”. Merge these arrays with the help of another user defined function named “merge arrays” which returns a new array. Program should display the arrays before and after sorting, also the merged arrays.
Concept: Array
Explain gets() and puts() functions of C language. Comment on their parameters and return values.
Concept: Function
Write a C program to
i. Create a 2D array [Matrix] [in main function]
ii. Write a function to read 2D array[Matrix]
iii. Write a function that will return true(1) if entered matrix is symmetric or false(0) is not symmetric.
iv. Print whether entered matrix is symmetric or not [in main function]
Concept: Array
Write a program to sort given array in ascending order.
Concept: Array
Draw the flow chart to find roots of a quadratic equation.
Concept: Three Construct of Algorithm and Flowchart
Comment on dynamic memory allocation. Write a program to read and store N integers in a Array, where value of N is defined by user. Find minimum and maximum members from the Array.
Concept: Array
Explain switch case and if-else ladder with example.
Concept: Control Structures > Branching
Select the correct option from multiple choice question.
Which of the following is not a keyword of ‘C’?
Concept: Identifiers and Keywords in C-Programming
State True or False with reason.
scanf() function is used to input string having multiple words.
Concept: String
State True or False with reason.
There is no difference between ‘\0’ and ‘0’.
Concept: String
Write a program to calculate number of vowels (a, e, i, o, u) separately in the entered string.
Concept: String
Write user defined function to implement string concatenation.
Concept: String
Explain need of file data and various modes of files also write program to create edit copy of file.
Concept: Files
Implement string copy function STRCOPY (str1,str2) that copies a string str1 (source) to another string str2 (destination) without using library function.
Concept: String
Explain file handling in c in details.[Note: Mention file type, file
modes, file related functions and its use)
Concept: Files
Why files are needed? Explain all the opening modes. Write a program to create copy of the user specify names of source and destination files.
Concept: Files
Explain any 4 functions from string.h header file with suitable examples.
Concept: String
Write the output of following code:
#include<stdio.h>
int main()
{
int val = 1;
do{
val++;
++val;
}while(val++>25);
printf(“%d\n”,val);
return 0;
}
Concept: Control Structures > Looping
Write a program to validate whether accepted string is palindrome or not.
Concept: Control Structures > Looping