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 is the benefit of using const for declaring constants?

0 Answers  


write a program that explain #define and # undef directive

1 Answers  


When should the const modifier be used?

0 Answers  


List some applications of c programming language?

0 Answers  


Can we access the array using a pointer in c language?

0 Answers  


What is the difference between fread and fwrite function?

0 Answers  


increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {

2 Answers   HCL, Syntel, TCS,


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

0 Answers   InterGraph,


Explain what is the use of a semicolon (;) at the end of every program statement?

0 Answers  


What is difference between Structure and Unions?

0 Answers   TISL,


What do you mean by invalid pointer arithmetic?

0 Answers  


What is declaration and definition in c?

0 Answers  


Categories