Recent Posts From All Categories

Showing posts with label C Programs. Show all posts
Showing posts with label C Programs. Show all posts

Display smallest number among array elements - C

Q. Assume that the array have size 10. WAP to request the 10 integers from users store it into array and display the smallest number among t...
Read More

Create simple menu using switch case - C

Q. WAP to create a simple menu using switch case. [8] #AssignmentNo7 ==> Code goes like this: #include<stdio.h> int main() {   ...
Read More

find smallest and largest number in a given array using pointer - C

Q. WAP to find smallest and largest number in a given array using pointer. [6] #Assignment2b ==> Code goes like this: #include<std...
Read More

Store 10 employees record in a data file and display who gets lowest salary - C

Q. WAP to input 10 employee records (Emp_Id, Emp_Name, Emp_Salary) and store them in a datafile named Employee.dat. Display the employee who...
Read More

Read a character and convert it into uppercase if it is in lowercase or vice-versa - C

Q. WAP to read a character from keyboard and convert it into uppercase if it is in lowercase or vice-versa. #BIT_FirstSem_2015_11No_8Marks_...
Read More

Asterisk Pattern Printing in C

Q. WAP to generate following output:         *       **     ***   **** ***** #BIT_FirstSem_2015_9No_8Marks_Solution #include<std...
Read More

Drawing rectangle and circle in C

Q. Write C program to display: a) a rectangle whose height is 200 pixels and width is 400 pixels b) a circle whose diameter is 200 pixels ...
Read More

Perform matrix multiplication using array and pointer - C

Q. WAP to perform matrix multiplication using array and pointer. #BIT_FirstSem_2015_6No_8Marks_Solution ==>Code goes like this: #incl...
Read More

Take numbers and display the sum of even numbers and odd numbers separately - C

Q. WAP to take numbers and display the sum of even numbers and odd numbers separately. #BIT_FirstSem_2015_3No_8Marks_Solution ==> Code ...
Read More

Displaying employee info having highest salary from data file having 10 records - C

Q. Write a program to input 10 employee records (Emp_id, Emp_Name and Emp_Salary) and store them in a data file named "Emp.dat". D...
Read More

Generate prime numbers from 100 to 200 - C

Q. Write a program to generate prime numbers from 100 to 200 BIT_FirstSem_2016_12No_8Marks_Solution ==> Code goes like this:  #include...
Read More

Display number of vowels and white spaces from the given text stored in a data file - C

Q. Write a program to to input a line of text and store it in a data file and display number of vowels and white spaces from the given text...
Read More

Maintain information of students and display them by sorting in alphabetical order - C

Q. A college needs to maintain following information for the records of it's Students.  Student code (int) Student name(maximum 40 cha...
Read More

Pattern printing in C

Q.  Program for following series  1 12 123 1234 12345 123456                          #BIT_FirstSem_2017_10No_5Marks_Solution ==...
Read More

Find the sum of elements of given array, using DMA - C

Q. Write a program to find the sum of elements of a given array, using DMA.  #BIT_FirstSem_2017_9No_5Marks_Solution ==>Code goes like t...
Read More

Swap two variables showing the example of call by reference - C

Q. Write a program to swap two variables showing the example of call by reference.  #BIT_FirstSem_2017_6No_4Marks_Solution ==>Code goes...
Read More