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 |
what type of errors are checked during compilation
what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }
what is meant by c
What is the data segment that is followed by c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
How is a null pointer different from a dangling pointer?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
how to execute with out main in cprogram
What is the use of function in c?
What is a constant and types of constants in c?
int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?