- 
                    
- 
                    Compare Two Files in CWrite a program that compares two files and return 0 if they are equal and 1 if they are not equal. 
- 
                    Efficient Sorting MethodIf we add a element to the last of a sorted sequence. Then which of the sorting method will be most efficient to sort the new sequence? 
- 
                    
- 
                    
- 
                    Field Width SpecificationWhat is Field Width Specification? 
- 
                    
- 
                    What will be difference b/w 5th and 6th statements?1. #define MAX 1002. main()3. {4. int max=100;5. int a[MAX];6. int b[max];7. } 
- 
                    Fflush() in Multiple Scanf callsWhat is the requirment of using fflush() in multiple scanf calls. 
- 
                    
 strcat(buf,buf);
 printf(buf);
 }
 While executing this in VC++ I do not get an output . Looks like the program runs into an infinite loop. But while executing the same in Turbo C I get the output as "hellohelloh". What could be the reason behind this difference in output?">Consider the following program segment :#include #include void main () { char buf[100] = "hello"; strcat(buf,buf); printf(buf);}While executing this in VC++ I do not get an output . Looks like the program runs into an infinite loop. But while executing the same in Turbo C I get the output as "hellohelloh". What could be the reason behind this difference in output?
- 
                    What is the difference between text and binary modes?Streams can be classified into two types: text streams and binary streams. Text streams are interpreted, with a maximum length of 255 characters. With text streams, carriage return/line feed combinations are translated to the newline n character and vice versa. Binary streams are uninterpreted and are treated one byte at a time with no translation of characters. Typically, a text stream would be used... 
- 
                    How many times fork() function is executedMain(){ if(fork()||fork()) return fork(); else return 0;}how many times fork() function is executed? 
- 
                    Why n++ executes faster than n+1?The expression n++ requires a single machine instruction such as INR to carry out the increment operation whereas, n+1 requires more instructions to carry out this operation. 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
C Interview Questions

 
  
  
  
		
Ans