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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2481


What does. int *x[](); means ?

837


How important is structure in life?

809


Is c weakly typed?

764


What is const volatile variable in c?

793


Can you define which header file to include at compile time?

803


What does 3 periods mean in texting?

819


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

981


What is union and structure?

793


Explain what header files do I need in order to define the standard library functions I use?

881


When is a null pointer used?

843


What is variable declaration and definition in c?

700


Explain what is the difference between text files and binary files?

867


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2117


Explain how can I convert a string to a number?

853