FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C Programming INTERVIEW QUESTIONS

Languages
21. How many arguments can be passed to a function in C?
 
  • Any number of arguments can be passed to a function.
  • There is no limit on this.
  • Function arguments are stored in stack memory rather than heap memory. Stack memory allocation is depending on the operating system.
  • So, any number of arguments can be passed to a function as much as stack has enough memory.
  • Program may crash when stack overflows.
Your Name Your Email-ID
Your Answer
 
22. Can array subscripts have negative value in C?
  No. Array subscripts should not have negative value. Always, it should be positive.
Your Name Your Email-ID
Your Answer
 
 
23. What is the difference between functions getch() and getche()?
  Both functions will accept a character input values from the user.
When using getch(), the key that was pressed will not appear on the screen, and is automatically captured and assigned to a variable. When using getche(), the key that was pressed by the user will appear on the screen, while at the same time being assigned to a variable.
Your Name Your Email-ID
Your Answer
 
24. What is the difference between int, char, float and double data types?
  Integer data type allows a variable to store numeric values. The storage size of int data type is 2 or 4 or 8 byte. It varies depend upon the processor in the CPU.
Character data type allows a variable to store only one character. Storage size of character data type is 1.
Float data type allows a variable to store decimal values. Storage size of float data type is 4. This also varies depend upon the processor in the CP.
Double data type is also same as float data type which allows up to 10 digits after decimal.
Your Name Your Email-ID
Your Answer