Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
What is the purpose of getc() ?->(Show Answer!)
Question Set

1. What is the purpose of getc()





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Show Similar Question And Answers
QA->One who is devoted to books only for learning facts just for the purpose of scoring marks is called a?....
QA->Of which purpose was Nationalisation of banks done?....
QA->Epiphytes are plant which depend on other plants for which purpose?....
QA->Optic fibres are mainly used for which purpose?....
QA->By whom is the Area of Lok Sabha Constituency for the purpose of general election determined?....
MCQ->Pick out thể one word for - a secret arrangement....
MCQ->What is the purpose of getc()....
MCQ->On executing the below program what will be the contents of 'target.txt' file if the source file contains a line "To err is human"? #include<stdio.h> int main() { int i, fss; char ch, source[20] = "source.txt", target[20]="target.txt", t; FILE fs, ft; fs = fopen(source, "r"); ft = fopen(target, "w"); while(1) { ch=getc(fs); if(ch==EOF) break; else { fseek(fs, 4L, SEEK_CUR); fputc(ch, ft); } } return 0; }....
MCQ->If the file 'source.txt' contains a line "Be my friend" which of the following will be the output of below program? #include<stdio.h> int main() { FILE fs, ft; char c[10]; fs = fopen("source.txt", "r"); c[0] = getc(fs); fseek(fs, 0, SEEK_END); fseek(fs, -3L, SEEK_CUR); fgets(c, 5, fs); puts(c); return 0; }....
MCQ->What will be the output of the program ? #include<stdio.h> int main() { FILE fp; unsigned char ch; / file 'abc.c' contains "This is IndiaBIX " / fp=fopen("abc.c", "r"); if(fp == NULL) { printf("Unable to open file"); exit(1); } while((ch=getc(fp)) != EOF) printf("%c", ch); fclose(fp); printf("\n", ch); return 0; }....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution