0% found this document useful (0 votes)
2 views4 pages

C Programming. Odt

The document outlines various fundamental concepts in C programming, including the differences between compilers and interpreters, types of errors, operators, loops, functions, pointers, arrays, and memory management. It also covers advanced topics such as recursion, storage classes, preprocessor directives, and file handling. Each concept is accompanied by definitions, examples, and explanations to facilitate understanding.

Uploaded by

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

C Programming. Odt

The document outlines various fundamental concepts in C programming, including the differences between compilers and interpreters, types of errors, operators, loops, functions, pointers, arrays, and memory management. It also covers advanced topics such as recursion, storage classes, preprocessor directives, and file handling. Each concept is accompanied by definitions, examples, and explanations to facilitate understanding.

Uploaded by

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

C PROGRAMMIG

1. Difference between compiler and interpreter.

2. Explain the term constants, keyword, and variable in c programs.

3. Discuss the rules for constructing constant in c program.

4. Explain escape sequence with example.

5. Explain the term %2.5f and %.7f and %d.

6. Explain different types of errors with example(syntax error, run time error,
linker error, logical error, semantic error)

7. When we get error message L value recured, and what do you mean by R
value.

8. Explain different types of operator with example.

9. Difference between post-incriment(a++) and pre-incriment(++a) operator.

10. Difference between ++ and += operator.

11. Why n++ is faster then n+1.

12. What is null statement.

13. Explain conditional operator(ternary operator).

14. WAP in c to find the maximum between 3 number using conditional


operator.

15. What do you mean by nested if-else statement.

16. Advantage of switch case.

17. Difference between switch case and if-else statement.

18. Define the syntax of while, for,do-while loop.

19. Explain infinite loop with example.

20. Difference between exit control loop(do-while) and entry control


loop(while).

21. Difference between for and do while loop.

22. Explain break and continue statement with example.


23. Difference between break and continue statement.

24. Define function in c programming with example and it advantage


disadvantage

25. What do you mean by the prototype of the function.

26. Explain function declaration, function calling, and function definition with
example.

27. Difference between user-defined and library function.

28. Explain call by value and call by address with example.

29. What do you mean by formal argument and actual argument.

30. Explain the term pointer and pointer to a pointer with example.

31. Explain dagling pointer and void pointer.

32. Difference between *ptr++ and ++*ptr.

33. Explain the concept of array of pointer and pointer to an array.

34. What do you mean by local variable and global variable with example.

35. Explain the term array with example.

36. Explain how 1-D and 2-D array Is initialized with example.

37. How 1-D array is passing to a function.

38. How two-dimensional array is represented in memory. (ANS: Row major


and column major order. Explained in the class)

39. A[2] and*(a+2) are same justify.

40. Explain static declaration and dynamic declaration of an array.

41. Explain the term Calloc, MallocFfree and Realloc

42. Difference between malloc and calloc.

43. Explain scope of a variable.

44. Difference between global variable and local variable with example.

45. Define library function.

46. Explain recursion with example.

47. Explain tail recursion with example.


48. Difference between recursion and itteration.

49. What do you mean by storage class.

50. Explain different type of storage class storage, defult,scope, life]

51. with example.(automatic, static, register, eternal)

52. Difference between static and automatic storgae class

53. Explain preprocessor directive.

54. Define macro with example.

55. Explain advantage and disadvantage of macro with example

56. Difference between macro and function.

57. Difference between #include<mylib.h> and #include”mylib.h”

58. What do you mean by pointer arithmetic

59. What is user define data type(structure).

60. Explain, operator and ‘->’ operator.

61. Explain union with example.

62. Explain utility of union.

63. What is enumerated datatype with example.

64. Difference between structure and union.

65. Explain self referential structure with example.

66. Explain the usage of typedef with example.

67. Explain why typecasting is needed.

68. Explains the sizeof() function.

69. Explian difference bitwise operator (not, and, or, xor, left shift, right shift)
with example.

70. Explin when bitwise AND (&) is used.

71. Explin when bitwise OR (1) is used.

72. Represent an decimal 8-bit number into its binary representation using
shift operator.
73. Wap that swap to value using bit wise XOR.

74. Explain the file opening mode (read, write, append).

75. Explain the significance of EOF().

76. Define the function fscanf(), fprintf(), fgets(), fputs(), fread(), fwrite().

77. Expain the function fseek(), ftell(), rewind().

78. Explain the term argc and argv() in main.

79. Difference between char str=”hello” and char str[]=”hello”

80. Difference between getcl) and getchar().

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