Hi,C programming newbie needs hellp!!!!!!!!!!!!!?

HjaltiSmith

New member
Joined
Mar 16, 2011
Messages
0
Reaction score
0
Points
0
Hi,here are some of the questions i have for C programming hope you can answer

can a function prototype have variable in it?
void display(int ar[][4], int size);

is true a valid keyword in c programming,I know it is in java but why in C they only use 1?

what is the difference between puts and printf

what is the use f putchar at the end of the variable?

what is the best C IDE?=compiler?,what are some of the most useful shortcuts you have learn?

For me it will be ALT-SPACEBAR

How do I write and program and package it and sell it?Is there any resources it can refer to?

why is it that fopen is deprecated?


Which of the four given statements is NOT TRUE about the following program?

why do some people use -> for pointer instead of the . why??



what is the uses of structs and union types?is it roughly similar to the object oriented programming concepts in java?


you will answer this questions for me

-----------------------------------------------------------------------------------------


main(void){
char filename1 [] = "data1.txt";
char filename2 [] = "data2.txt";
FILE *fp1,*fp2;
char ch;
fp1 = fopen(filename1,"r");
fp2 = fopen(filename2,"w");

while((ch = fgetc(fp1) != EOF)){
fputc(ch,fp2);
putchar(ch);
}
system("pause");

fclose(fp1);
fclose(fp2);

return 0;


}


The program reads characters one by one from the file data1.txt and writes them to the file data2.txt

The program will have no runtime error even if the file data2.txt doesn?t exist in the current directory

Both the file data1.txt and the file data2.txt are opened in text mode

If the file data2.txt exists before the program execution, the program will not overwrite the old content of data2.txt
 
Back
Top