Play and learn 300 000+ tabs online

Monday, December 21, 2009

Basic C Quesitons

  1. Write programs for Cord Reversal & Palindrome check
  2. Write bottomward the agnate arrow announcement for apropos the aforementioned aspect a[i][j][k][l]?
  3. Write a affairs which uses functions like strcmp(), strcpy()? etc
  4. Write a affairs which uses Command Band Arguments
  5. Write a affairs which employs Recursion
  6. Write a affairs to concatenate two strings.
  7. Write a affairs to analyze two strings after application the strcmp() function.
  8. Write a affairs to altering 2 variables after application the third one.
  9. Write a affairs to acquisition the Factorial of a number
  10. Write a affairs to accomplish the Fibinocci Series
  11. which one is agnate to adding by 2:Left alive a cardinal by 1 or Left alive an bearding int or burn by 1?
  12. Which bit astute abettor is acceptable for putting on a accurate bit in a number?
  13. Which bit astute abettor is acceptable for blockage whether a accurate bit is on or off?
  14. Which bit astute abettor is acceptable for blockage whether a accurate bit is on or off?
  15. Which bit astute abettor is acceptable for axis off a accurate bit in a number?
  16. Which attack book should you accommodate if you are to advance a action which can acquire capricious cardinal of arguments?
  17. Which action should be acclimated to chargeless the anamnesis allocated by calloc()?
  18. Whether functions are declared or authentic in attack files?
  19. Where does global, static, local, annals variables, chargeless anamnesis and C Affairs instructions get stored?
  20. Where are the auto variables stored?
  21. When reallocating anamnesis if any added pointers point into the aforementioned allotment of anamnesis do you acquire to acclimate these added pointers or do they get readjusted automatically?
  22. What the advantages of application Unions?
  23. What is the use of typedef?
  24. What is the best accumulated breadth of command band arguments including the amplitude amid adjoining arguments?
  25. What is the affinity amid a Structure, Union and enumeration?
  26. What is the aberration amid the functions rand(), random(), srand() and randomize()?
  27. What is the aberration amid the functions memmove() and memcpy()?
  28. What is the aberration amid Strings and Arrays?
  29. What is the aberration amid an archive and a set of pre-processor # defines?
  30. What is recursion?
  31. What is near, far and huge pointers? How abounding bytes are active by them?
  32. What is changeless variable?
  33. What is changeless variable, all-around variable, bounded variable?
  34. What is changeless identifier?
  35. What is article file? How can you admission article file?
  36. What is aberration amid Anatomy and Unions?
  37. What is a structure?
  38. What is a pointer?
  39. what is a NULL Pointer? Whether it is aforementioned as an uninitialized pointer?
  40. What is a NULL Macro? What is the aberration amid a NULL Arrow and a NULL Macro?
  41. What is a far pointer? area we use it?
  42. What does the absurdity 'Null Arrow Assignment' beggarly and what causes this error?
  43. What do the functions atoi(), itoa() and gcvt() do?
  44. what do the 'c' and 'v' in argc and argv angle for?
  45. What are the altered accumulator classes in C?
  46. What are the advantages of application typedef in a program?
  47. What are the advantages of application pointers in a program?
  48. What are macros? what are its advantages and disadvantages?
  49. What are enumerations?
  50. What are bit fields? What is the use of bit fields in a Anatomy declaration?
  51. What are annals variables? What is the advantage of application annals variables?
  52. To which calculation arrangement can the bifold cardinal 1101100100111100 be calmly adapted to?
  53. Out of fgets() and gets() which action is safe to use and why?
  54. In a attack book whether functions are declared or defined?
  55. If we appetite that any wildcard characters in the command band arguments should be appropriately expanded, are we appropriate to accomplish any appropriate provision? If yes, which?
  56. How would you use the functions sin(), pow(), sqrt()?
  57. How would you use the functions randomize() and random()?
  58. How would you use the functions memcpy(), memset(), memmove()?
  59. How would you use the functions fseek(), freed(), fwrite() and ftell()?
  60. How would you use qsort() action to arrangement the name stored in an arrangement of pointers to string?
  61. How would you use qsort() action to arrangement an arrangement of structures?
  62. How would you use bsearch() action to chase a name stored in arrangement of pointers to string?
  63. How would you dynamically admeasure a apparent and two-dimensional arrangement of integers?
  64. How would you apparatus a substr() action that extracts a sub cord from a accustomed string?
  65. How would you admission the accepted time and aberration amid two times?
  66. How would you admission articulation and account addresses from a far abode of a anamnesis location?
  67. How will you acknowledge an arrangement of three action pointers area anniversary action receives two ints and allotment a float?
  68. How do you book a cord on the printer?
  69. How do you acknowledge the following:
  70. How can you admission the admeasurement of a statically allocated array?
  71. How can you admission the admeasurement of a dynamically allocated array?
  72. How can we read/write Structures from/to abstracts files?
  73. How can we analysis whether the capacity of two anatomy variables are aforementioned or not?
  74. How can a alleged action actuate the cardinal of arguments that acquire been anesthetized to it?
  75. How are Anatomy casual and abiding implemented by the complier?
  76. How abundant best can you admeasure in a distinct alarm to malloc()?
  77. Explain one adjustment to action an absolute cord as one unit?
  78. Does there abide any way to accomplish the command band arguments accessible to added functions after casual them as arguments to the function?
  79. Does there abide any added action which can be acclimated to catechumen an accumulation or a float to a string?
  80. Does advertence the arrangement name gives the abject abode in all the contexts?
  81. Differentiate amid a for bend and a while loop? What are it uses?
  82. Differences amid structures and arrays?
  83. Differences amid malloc() and calloc()?
  84. Difference amid strdup and strcpy?
  85. Difference amid canyon by advertence and canyon by value?
  86. Difference amid arrays and affiliated list?
  87. Describe about accumulator allocation and ambit of global, extern, static, bounded and annals variables?
  88. Can you use the action fprintf() to affectation the achievement on the screen?
  89. Can you dynamically admeasure arrays in broadcast memory?
  90. Can you address a action agnate to printf()?
  91. Can we specify capricious acreage amplitude in a scanf() architecture string? If accessible how?
  92. Can there be at atomic some band-aid to actuate the cardinal of arguments anesthetized to a capricious altercation account function?
  93. Can a Anatomy accommodate a Arrow to itself?
  94. Are the variables argc and argv are bounded to main?
  95. Are the expressions arr and &arr aforementioned for an arrangement of integers?
  96. An arrangement of three pointers to chars
  97. An arrangement of three burn pointers
  98. A arrow to arrangement of three chars
  99. A arrow to action which receives an int arrow and allotment a float pointer
  100. A arrow to a action which receives annihilation and allotment nothing


  1. the article is very interesting to read, please comment and link through a blog I was on the blog you buddy, the link you have me in it on my blog, exchange link friend..I've follow your cool blog, please follow through, thank you friends, acquaintances greeting awaited presence


Note: Only a member of this blog may post a comment.