Seach in Techno Google

Thursday, October 18, 2007

What's in C

  1. # What is data types in C?
  2. # Why C is the first language to teach the students at engineering colleges?
  3. # Why in this modern world also C is the backbone of software industry?
  4. # still in colleges during on-campus they ask questions mostly from C ?
  5. # what is the importance of data structure through C?
  6. # When program is run then how it manages the memory location and where it stores the variables,expression's value and all?
  7. # What is the difference between declaration and definition?
  8. # What does static variable mean?
  9. # What is a pointer?
  10. # What is a structure?
  11. # What are the differences between structures and arrays?
  12. # In header files whether functions are declared or defined?
  13. # What are the differences between malloc() and calloc()?
  14. # What are macros? what are its advantages and disadvantages?
  15. # Difference between pass by reference and pass by value?
  16. # What is static identifier?
  17. # Where are the auto variables stored?
  18. # Where does global, static, local, register variables, free memory and C Program instructions get stored?
  19. # Difference between arrays and linked list?
  20. # What are enumerations?
  21. # Describe about storage allocation and scope of global, extern, static, local and register variables?
  22. # What are register variables? What are the advantage of using register variables?
  23. # What is the use of typedef?
  24. # Can we specify variable field width in a scanf() format string? If possible how?
  25. # Out of fgets() and gets() which function is safe to use and why?
  26. # Difference between strdup and strcpy?
  27. # What is recursion?
  28. # Differentiate between a for loop and a while loop? What are it uses?
  29. # What are the different storage classes in C?
  30. # Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
  31. # What is difference between Structure and Unions?
  32. # What the advantages of using Unions?
  33. # What are the advantages of using pointers in a program?
  34. # What is the difference between Strings and Arrays?
  35. # In a header file whether functions are declared or defined?
  36. # What is a far pointer? where we use it?
  37. # How will you declare an array of three function pointers where each function receives two ints and returns a float?
  38. # what is a NULL Pointer? Whether it is same as an uninitialized pointer?
  39. # What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
  40. # What does the error 'Null Pointer Assignment' mean and what causes this error?
  41. # What is near, far and huge pointers? How many bytes are occupied by them?
  42. # How would you obtain segment and offset addresses from a far address of a memory location?
  43. # Are the expressions arr and &arr same for an array of integers?
  44. # Does mentioning the array name gives the base address in all the contexts?
  45. # Explain one method to process an entire string as one unit?
  46. # What is the similarity between a Structure, Union and enumeration?
  47. # Can a Structure contain a Pointer to itself?
  48. # How can we check whether the contents of two structure variables are same or not?
  49. # How are Structure passing and returning implemented by the complier?
  50. # How can we read/write Structures from/to data files?
  51. # What is the difference between an enumeration and a set of pre-processor # defines?
  52. # what do the 'c' and 'v' in argc and argv stand for?
  53. # Are the variables argc and argv are local to main?
  54. # What is the maximum combined length of command line arguments including the space between adjacent arguments?
  55. # If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
  56. # Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
  57. # What are bit fields? What is the use of bit fields in a Structure declaration?
  58. # To which numbering system can the binary number 1101100100111100 be easily converted to?
  59. # Which bit wise operator is suitable for checking whether a particular bit is on or off?
  60. # Which bit wise operator is suitable for turning off a particular bit in a number?
  61. # Which bit wise operator is suitable for putting on a particular bit in a number?
  62. # Which bit wise operator is suitable for checking whether a particular bit is on or off?
  63. # which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
  64. # Write a program to compare two strings without using the strcmp() function.
  65. # Write a program to concatenate two strings.
  66. # Write a program to interchange 2 variables without using the third one.
  67. # Write programs for String Reversal & Palindrome check
  68. # Write a program to find the Factorial of a number
  69. # Write a program to generate the Fibinocci Series
  70. # Write a program which employs Recursion
  71. # Write a program which uses Command Line Arguments
  72. # Write a program which uses functions like strcmp(), strcpy()? etc
  73. # What are the advantages of using typedef in a program?
  74. # How would you dynamically allocate a one-dimensional and two-dimensional array of integers?
  75. # How can you increase the size of a dynamically allocated array?
  76. # How can you increase the size of a statically allocated array?
  77. # When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
  78. # Which function should be used to free the memory allocated by calloc()?
  79. # How much maximum can you allocate in a single call to malloc()?
  80. # Can you dynamically allocate arrays in expanded memory?
  81. # What is object file? How can you access object file?
  82. # Which header file should you include if you are to develop a function which can accept variable number of arguments?
  83. # Can you write a function similar to printf()?
  84. # How can a called function determine the number of arguments that have been passed to it?
  85. # Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
  86. # How do you declare the following:
  87. * An array of three pointers to chars
  88. * An array of three char pointers
  89. * A pointer to array of three chars
  90. * A pointer to function which receives an int pointer and returns a float pointer
  91. * A pointer to a function which receives nothing and returns nothing
  92. # What do the functions atoi(), itoa() and gcvt() do?
  93. # Does there exist any other function which can be used to convert an integer or a float to a string?
  94. # How would you use qsort() function to sort an array of structures?
  95. # How would you use qsort() function to sort the name stored in an array of pointers to string?
  96. # How would you use bsearch() function to search a name stored in array of pointers to string?
  97. # How would you use the functions sin(), pow(), sqrt()?
  98. # How would you use the functions memcpy(), memset(), memmove()?
  99. # How would you use the functions fseek(), freed(), fwrite() and ftell()?
  100. # How would you obtain the current time and difference between two times?
  101. # How would you use the functions randomize() and random()?
  102. # How would you implement a substr() function that extracts a sub string from a given string?
  103. # What is the difference between the functions rand(), random(), srand() and randomize()?
  104. # What is the difference between the functions memmove() and memcpy()?
  105. # How do you print a string on the printer?
  106. # Can you use the function fprintf() to display the output on the screen?