0% found this document useful (0 votes)
53 views

c programming important questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

c programming important questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CS3271 - C PROGRAMMING MODEL LAB QUESTIONS

Write a C program to take input of name, rollno and marks obtained by a student in 4 subjects of 100
1.
marks each and display the name, rollno with percentage score secured.

2. Write a C program to input two numbers and display the maximum number.

3. Write a C program to find whether a character is consonant or vowel using switch statement.

4 Write a C program to print positive integers from 1 to 10.

5 Write a C program to check whether a number is Palindrome or not.

6 Write a C program to generate Fibonacci series.

7. Write a C program to insert 5 elements into an array and print the elements of the array.

8 Write a C Program to reverse the array elements in C Programming

9. Write a C program to concatenate two strings

10 Write a C program to compare two strings without using string library functions.

11 Write a C program to generate Fibonacci series using recursive function

12 Write a C program to find power of any number using recursion.

Write a C program to add, subtract, multiply and divide two integers using user defined type
13
function with return type

Write a C program to swap two integers using call by value and call by reference methods of passing
14
arguments to a function

15 Write a C program to find biggest among three numbers using pointer

16 Write a C program to compare two strings using pointers.


DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
CS3271 - C PROGRAMMING MODEL LAB QUESTIONS

17. Write a C program to create, declare and initialize structure

18 Write a C program to declare, initialize an UNION.

Write a C program to create a file called emp.rec and store information about a person, in terms of
19
his name, age and salary.

20 Write a C program to list all files and sub-directories in a directory

FACULTY HOD

You might also like