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

Why do we need volatile in c?

972


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

1174


What is assignment operator?

845


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

855


Explain what is operator promotion?

873


What is the difference between %d and %i?

855


what are bit fields? What is the use of bit fields in a structure declaration?

1800


What is table lookup in c?

866


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

861


Why c is procedure oriented?

812


any "C" function by default returns an a) int value b) float value c) char value d) a & b

897


What is an array? What the different types of arrays in c?

904


What is scope and lifetime of a variable in c?

814


Explain the advantages and disadvantages of macros.

873


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1683