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

difference between loading and linking

1 Answers  


What is the purpose of main() function?

0 Answers  


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

0 Answers  


What is a pointer value and address in c?

0 Answers  


Hi can anyone tell what is a start up code?

0 Answers   CTS,






How can I convert integers to binary or hexadecimal?

2 Answers  


What does a run-time "null pointer assignment" error mean?

2 Answers  


What is nested structure with example?

0 Answers  


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

0 Answers  


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


what is volatile in c language?

9 Answers   Cap Gemini, HCL, Honeywell, TCS, Tech Mahindra,


Categories