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

Write a program to print distinct words in an input along with their count in input in decreasing order of their count..

1 Answers  


How to add two numbers without using arithmetic operators?

18 Answers   College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,


How to find a missed value, if you want to store 100 values in a 99 sized array?

0 Answers   Honeywell, Zomato,


wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


What is the need of structure in c?

0 Answers  






What is the memory allocated by the following definition ? int (*x)();

2 Answers   ADITI,


write a progam to display the factors of a given number and disply how many prime numbers are there?

2 Answers  


program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

8 Answers   Infosys,


largest Of three Number using without if condition?

0 Answers  


Can we write a program without main() function?

9 Answers  


Which function in C can be used to append a string to another string?

0 Answers  


diff .between strcture and union

2 Answers  


Categories