C Lab Practical Question Printout
C Lab Practical Question Printout
Q3. Given the values of three variable entered by user, write a program to
calculate average of 3 numbers.
-
Q4. Write a program to SWAP two numbers.
Q5. Write a program to convert one data type to another by Type casting.
-Branching and logical expressions: Use of If, if- else, Else if, nested ifstatements and
operators with them andswitch case statement
-Loops: do, while and for loops: Use of while loop, do while, and for loop:their Syntax
Q3. WAP to find whether the given number is prime or not using while
loop.
5-Arrays and Strings
Q1. WAP to insert 5 elements in 1D array, print, modify and traverse the array.
Q3. WAP to perform and display various string functions (strlen, strcat,
strlwr, strupr)
Q1. WAP to add two numbers using user defined function with return type
and arguments concept.
Q3.WAP to print fibonacci series till nth term number using recursion.
2.WAP to create, read and write to and from simple text files.