What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?



What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?..

Answer / sathish kumar

Hi All,

In the above function call fopen we should have used "C:\\"
instead of using "C:\". Because '\' is treated as a escape
sequence.

Thanks & Regards
Sathish Kumar

Is This Answer Correct ?    31 Yes 0 No

Post New Answer

More C Interview Questions

what type of errors are checked during compilation

3 Answers  


what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }

4 Answers  


what is meant by c

9 Answers   INiTS,


What is the data segment that is followed by c?

0 Answers  


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

0 Answers  






main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

0 Answers  


How is a null pointer different from a dangling pointer?

0 Answers  


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

0 Answers  


how to execute with out main in cprogram

15 Answers   Infosys,


What is the use of function in c?

0 Answers  


What is a constant and types of constants in c?

0 Answers  


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


Categories