0% found this document useful (0 votes)
70 views2 pages

Important Questions in C

The document lists 46 important questions about C programming. It covers fundamental concepts like data types, operators, control flow, functions, arrays, structures, pointers, and more. It asks about the differences between constants, literals, variables and identifiers. It also includes questions about writing programs to perform tasks like calculating the largest of three numbers, building a basic calculator, finding the area of shapes, solving quadratic equations, and more. Finally, it asks about advanced topics like recursion, structures, unions, pointers, scope of variables, and generating patterns with asterisks.

Uploaded by

owais rehman
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)
70 views2 pages

Important Questions in C

The document lists 46 important questions about C programming. It covers fundamental concepts like data types, operators, control flow, functions, arrays, structures, pointers, and more. It asks about the differences between constants, literals, variables and identifiers. It also includes questions about writing programs to perform tasks like calculating the largest of three numbers, building a basic calculator, finding the area of shapes, solving quadratic equations, and more. Finally, it asks about advanced topics like recursion, structures, unions, pointers, scope of variables, and generating patterns with asterisks.

Uploaded by

owais rehman
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

Important Questions in C

1. What are different data types used in C lang. Give their range, storage size and access
specifier with proper examples.
2. What is difference between constants ,literals, variables and identifiers.
3. Explain arithmetic, relational, logical and conditional operators.
4. What are prefix and postfix operators with example.
5. Define pre-processor directive and header file.
6. A semicolon acts like a terminator(y/n).
7. What is type casting?
8. Write a program to print the largest of three nos using nested if ladder and logical
operators.
9. Write a program that creates a four-function calculator.
10. Write a program to design a calculator using the switch construct.
11. Write a menu driven program to find area of a square, rectangle, and triangle.
12. Write a program to solve a quadratic equation.
13. What are the various decision-making constructs used. Give examples.
14. Write a program to print the multiplication table of a number.
15. Write a program to print the factorial of a number.
16. Write a program that prints the first n terms of the Fibonacci series.
17. Write a program to count the number of digits in a number entered by a user.
18. WAP that reverses and sums up the digits of an integer.
19. What is the difference between while and do-while loop.
20. WAP to check whether a number is palindrome or not.
21. WAP to check whether a number is Armstrong or not.
22. Explain use of break, continue goto and return statement.
23. WAP to input 10 numbers and print them in reverse order.
24. WAP to search an element from an array.
25. WAP to insert an element from an array.
26. WAP to delete an element from an array.
27. WAP to find the largest and smallest element of an array.
28. WAP to add and subtract two arrays.
29. WAP to multiply two arrays.
30. What are the three steps in building a function.
31. What are the library functions in C.
32. What are actual and formal arguments.
33. How does function make a program modular.
34. WAP a function to print the square of a given number using a function.
35. WAP a function to generate factorial of a number using a function.
36. WAP to swap two numbers using call by value and call by reference function.
37. What is a recursive function. WAP calculating factorial using recursion.
38. What is difference between structure and union.
39. WAP to enter and display the student name, student ID, student address, percentage
using structures.
40. WAP explaining unions.
41. What is a pointer, what does a pointer point to.
42. WAP to calculate sum of two numbers using pointers.
43. WAP to swap two numbers using pointers.
44. What is scope of a variable. What are local and global variables.
45. Define Auto, Extern, Static, Register variables.
46. WAP to print the following series
1 *
12 **
123 ***
1234 ****
12345 *****

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy