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
Why do we need volatile in c?
What is the use of a semicolon (;) at the end of every program statement?
What is assignment operator?
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
Explain what is operator promotion?
What is the difference between %d and %i?
what are bit fields? What is the use of bit fields in a structure declaration?
What is table lookup in c?
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
Why c is procedure oriented?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is an array? What the different types of arrays in c?
What is scope and lifetime of a variable in c?
Explain the advantages and disadvantages of macros.
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?