C
Programming and Technical
Q. What is prototype of printf function?
A. Prototype of printf function is:
int printf( const char *format ,…)
Read Solution (Total 0)
C Other Question
Q. What is slack byte in structure?
A. To store any type of data in structure there is minimum fixed byte which must be reserved by memory. This minimum byte is known as word boundary. Word boundary depends upon machine. TURBO C is based on 8086 microprocessor which has two byte word boundary. So any data type reserves at least two byte space.
Q. What is difference between declaration and definition?
A. During declaration we just specify the type and no memory is allocated to the variable. But during the definition an initial value is assigned and memory is allocated to the variable.