Please select a subject first
Advertisements
Advertisements
State True or False with reason.
In a union, space is allocated to every member individually.
Concept: Union
State True or False with reason.
There is no difference between ‘\0’ and ‘0’.
Concept: String
How to create array of structure variable and assign values to its members?
Concept: Array
Differentiate between struct and union. When is union preferred over struct? Give on example of each.
Concept: Structure
Differentiate between structure and union.
Concept: Union
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
Write a program to calculate number of vowels (a, e, i, o, u) separately in the entered string.
Concept: String
What are structures? Comment on nested structures. Write a program to read Title, Author and price of 10 books using array of structures. Display the records in ascending order of Price.
Concept: Structure
Write user defined function to implement string concatenation.
Concept: String
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
Implement string copy function STRCOPY (str1,str2) that copies a string str1 (source) to another string str2 (destination) without using library function.
Concept: String
Write a program to sort given array in ascending order.
Concept: Array
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 any 4 functions from string.h header file with suitable examples.
Concept: String
What is pointer? Explain how the pointer variable declared and initialized.
Concept: Pointer
Select the correct option from multiple choice question.
void main() {
char a[]= “Hello world”;
char *p;
p=a;
printf(“\n%d%d%d%d”,sizeof(a),sizeof(p),strlen(a),strlen(p) ); }
Concept: Pointer
State True or False with reason.
Size of pointer variable is equal to the datatype it points to.
Concept: Pointer
State True or False with reason.
The statement void p; is valid.
Concept: Pointer
Explain need of file data and various modes of files also write program to create edit copy of file.
Concept: Files
