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 |
Where in memory are my variables stored?
Explain what standard functions are available to manipulate strings?
Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;
18 Answers Accenture, Cisco, Egentec, HCL, Ideaz, Infosys, M-Systems, MYR, TCS,
Describe the order of precedence with regards to operators in C.
write a program to print data of 5 five students with structures?
Is null equal to 0 in sql?
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A
How can I send mail from within a c program?
What is ctrl c called?
What are the standard predefined macros?
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?