Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: c program questions
Description: my questions are so good i can gaurantee u will find it helpful
Description: my questions are so good i can gaurantee u will find it helpful
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
Topic 1: Variable declaration, data types, Formatted input and output functions, operators
and expressions
...
program 2: WAP to show various ways in which “printf” can be used to display various messages
...
Program 4: WAP to calculate simple interest(p*r*t) and compound interest
...
Program 6: WAP to convert centigrade temperature to Fahrenheit and vice versa
...
Program 8: WAP to ask user to enter time in hours and calculate minutes and seconds
...
Program 10:WAP to enter a character from keyboard if character is small letter convert to capital or
vice versa
...
Program 12: WAP to enter time in minutes and find its equivalent hrs and minutes
...
Program 2: WAP to ask user to enter his age and display whether he is eligible for casting a vote or
not
...
Program 2: WAP to check if a student is eligible for sitting in ETE or not
...
Ask user to enter his attendance
and CA marks
...
Program 4: WAP to find whether number is positive or negative using conditional(ternary) operator
...
Ask user the quantity of each item and display the total bill
...
Program 7: WAP to ask user to enter three numbers and find greater out of three numbers
...
Program 2: WAP to find that year entered is leap year or not using if-else
...
Program 4: WAP to show following conditions using nested if else statement:
gender: male salary>10000 then bonus should be 1000
salary <10000 and >5000, then bonus=500
s
alary <5000, then bonus=100
gender:female salary>10000 then bonus should be 100
salary <10000 and >5000, then bonus=50
salary <5000, then bonus=10
Program 5: WAP using switch statement, asking the user to enter a day(sunday, monday, tuesday,
etc)
...
Program 7: Write a menu driven program using switch case to do different arithematic operations,
showing use of break statement also
Program 6: WAP to calculate electricity bill of a user
...
If units<=200 each unit is charged at 2Rs
...
2 and other unit is charged at 4Rs
...
Ask user to press ‘r’ for
area of rectangle ‘s’ for area of square and ‘c’ for area of circle
...
Topic 4: Loops(while, do while and for)
Program 1: WAP to calculate factorial of a number
...
Program 4: WAP to check whether number is palindrome or not?
Program 5: WAP to display all numbers between 20 and 60 except printing numbers which are
divisible by 7
...
Program 7: WAP to print A-Z n the form of AB CD EF
...
Program 9:WAP to ask user to enter a number and display multiplication table in the form of
N*1=
...
...
N*10=
...
Topic 5: Loops and Nested loops
Program 1: WAP to display following pattern:
*
**
***
****
*****
Program 2: WAP to display following pattern:
1
12
123
1234
12345
Program 3: WAP to display following pattern:
1
121
12321
1234321
Program 4: WAP to display following pattern:
12345
2345
345
45
5
Topic 6: functions
Program 1: Write a menu driven program to show various arithmetic operations using switch and
functions
...
Program 3: WAP to show the table of the number using functions
...
Program 5: WAP to swap the value of two numbers using functions
...
Program 7: WAP to create functions with following prototype
int meter(int KM);
int feet(int KM);
int miles(int KM);
Ask user to enter value of distance in KM and converting it to meter , feet and miles using switch
statement
...
Topic 7: functions(call by value, call by reference)
Program 1: WAP to show the working of call by value and call by reference for sum of two
numbers
...
Program 3: WAP to find the greatest and smallest from the elements of array using functions
...
Program 5: WAP to swap the values of two variables using call by value and call by reference
...
Program 2: WAP to find factorial using recursion
...
Program 5: WAP to find whether a number is prime or not using recursion
...
1 Dimensional array
Program 1: WAP to store integer data in an array, and print the elements of the array:
Program 2: WAP to find the sum of all elements of an array
...
Program 5: WAP to find the smallest/minimum number in the array
...
Program 7: WAP to search a given element in an array using binary search
...
Program 9: WAP to search a given item in an array
...
Program 11: WAP to enter 10 different numbers in an array, then adding the numbers that are
divisible by 3 and displaying the result
...
Display contents of array after insretion
...
Program 14: WAP to create array for storing marks of 60 students and find
(a) Highest marks
(b) Lowest marks
(c) Average marks
...
Program 15: WAP to create 2 arrays of 1D
...
Create third array and add the
contents of 1st and 2nd array and store answer in 3rd array
...
Program 2: WAP to multiply two matrices
...
Program 4: WAP to find the sum of opposite diagonal elements of a square matrix
...
Program 6: WAP to enter 3X3 array
...
String
Program 1: WAP to concatenate two strings
...
Program 3: WAP to perform arithmetic operations on characters
...
Program 5: WAP to copy a string
...
Program 7: WAP to find whether a string is palindrome or not
...
Program 9: WAP to find number of occurrences of “e” in a string, and replace “e” with “X”
...
Program 11: WAP to compare two strings without using strcmp
...
Program 13: WAP to reverse a string without using strrev
...
Program 15: WAP to reverse a string and store it in other string without using strrev
...
Program 2: WAP to search a character in string using pointer
...
Program 4: WAP to show accessing of array elements using pointers
...
Program 6: WAP to ask user to enter a string find lenth of string using pointer
...
Program 8: WAP to ask user to create a array , enter values in it and add 2 in each element of array
using pointer and display the array
...
Dynamic Memory Allocation
Program 1:WAP to create a array of 5 elements using malloc
...
Program 2: WAP to create string using calloc
...
Program 3: WAP to create array using malloc
...
Program 4: WAP to store a string ,use calloc for allocating space
...
Program 5: WAP to create a array of 5 elements using malloc
...
Realllocate the memory
of this array using realloc and reenter the values and display all the elements
Program 6: WAP to assign memory to a float array at run time and calculate the average of elemnt of that
array
...
Program 2: WAP to store the record of a student containing name, rollnumber, class and marks in
three subjects of the student
...
Program 3: using the structure in above program create an array of atleast 5 elements
...
Program 4: WAP to create one structure inside other structure
...
Program 6: WAP to create structure of book( Name,Author,Callno) and display the information of
one book by using pointer to structure
Program 7:WAP to create a structure named TEAM with members country_name,Total,won,lost
...
(a) To enter data
(b) To display data in tabular format
(c) To search data according to country name
...
Program 8: WAP to create a structure named BILL with members meter_no,name,Previous reading and
current reading
...
(a)
(b)
(c)
(d)
To enter data
To display data in tabular format
To search data according to meter no
To sort the data according to meterno
...
Program 2: WAP to create one file to store 10 number and then copy the contnents by storing even
numbers on second file and odd numbers on third file
...
Program 4: WAP to create one file and display the content of file on screen
...
Title: c program questions
Description: my questions are so good i can gaurantee u will find it helpful
Description: my questions are so good i can gaurantee u will find it helpful