Write a C program to sort an array of size n using insertion sort. Show the
intermediate steps for each iteration by displaying currently which
element is picked from unsorted sublist and placed in which position in
the sorted sublist.
1) Write a Menu driven C program to implement the following operations
in the linked list.
Insert after a given node.
Insert before a given node.
Delete a given node.
Write a C program to store the information of vehicles. Use bit fields to store the status of information.
* The types of vehicles information are Two Wheeler=3, Four Wheeler=4, Petrol=0, Diesel=1, Old=5 and New=6
* The bit fields member variables are fuel, type and model
In online journal system, the user has to give detail information about their abstract of the manual script before upload of source document. The abstract submitted by the author should not more than 300 words. The journal system uses program to count the number of vowels, consonants, digits and symbols in a given paragraph. Write a C program to count the number of vowels, consonants, digits and symbols using pointers.
Runtime Input :
1=>see-programming.blogspot.com
Output :
No. of vowels: 8
No. of consonants: 17
No. of digits: 1
No. of symbols: 1
Others: 4
Write a C program of fonts using enumeration.
enum designFlags
{
BOLD = 1, ITALICS = 2, UNDERLINE = 3, STRIKE = 4;
};
Runtime Input :
1
Output :
BOLD
Write a C program of fonts using enumeration.
enum designFlags
{
BOLD = 1, ITALICS = 2, UNDERLINE = 3, STRIKE = 4;
};
Runtime Input :
1
Output :
BOLD
Write a C program for printing roll number, name and phone number of a student using function. First declare a structure named student with roll_no, name and phone number as its members and 's' as its pointer variable. Then assign the values of roll number, name and phone number to the structure variable s. In passing by reference, address of structure variable is passed to the function. Now, while defining the function, Pass a copy of the pointer variable 's' as its argument with 'struct student' written before it because the variable which we have passed is of type structure named student.
Runtime Input:
30
Ragav
9998766563
Output:
30
Ragav
9998766563
Write a C program to find the area of circle using preprocessor directives.
Write a C program to store the information of vehicles. Use bit fields to store the status of information.
* The types of vehicles information are Two Wheeler=3, Four Wheeler=4, Petrol=0, Diesel=1, Old=5 and New=6
* The bit fields member variables are fuel, type and model
Program to calculate the area of square and area of circle. Input values for square and circle are same and display the result of square and circle.