Tuesday, October 30, 2018

CP UNIT-V QUESTIONS

How to define a global constant?
Write a statement to open a file in reading mode.
Explain FILE structure in detail.
Describe formatted input output statements.
What is the problem with getchar ()?
Define Stream. List different types of Streams.
Explain fprintf() and fscanf() functions with an example program.
Define Preprocessor directives. Discuss Marco replacement with an example.
Write a C program that reads characters from the keyboard and writes them to a disk file until the user types a dollar sign.
What is Flushing a Stream? Discuss function like Macro With an example.
Define a file.
What is the use of the preprocessor directives?
Describe the following file functions.
(a) fopen().(b) fclose().(c) getc(). (d) putc(). (e) feof().
How to use fseek() for random access of the file content?
Explain about Macros with an example.
What is a pre-processor?
What role does the fseek() plays and how many arguments does it Have?
Write different built-in (library) functions provided by ā€˜C’ language for handling I/O operations on files.
What are the features of C preprocessor? Give the differences between macros and functions
Write a sample C program to demonstrate the control string of scanf() function.
Discuss the types of streams.
Write a C program to read name and marks of N number of students from user and store them in a file.
Write a C program to demonstrate the use of fscanf and fprintf functions.
Write a program in C to illustrate the use of rewind and fseek functions.
Write a program in C that reads files and displays them on the screen.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home