Posts

Showing posts from May, 2023

Question Bank of Advanced ‘C’ Prgramming(2022-23)

                                           Question Bank of Advanced ‘C’ Prgramming     Q.1 one mark question. 1.        Define structure. 2.        Which function is used to open a file? 3.        What is macro? 4.        What is the use of strcpy () function. 5.        What is command line argument? 6.        Write syntax to declare a pointer. 7.        What is the use of malloc () function? 8.        What is file opening mode? 9.        Which functions are used to read a string? 10. ...

Assignment 4(File handling in C)

  What is file opening mode. Explain the file opening modes for text file. Explain the use of fgets() and fputs() with suitable example. Explain following functions with syntax and example. fgetc(), fputc(), fscanf (), fprintf (). Give the use of rewind ( ) function. Which function is used to move file pointer? Define file. Explain any four file functions. Write a C program to read a file and display alternate characters from a file. Write two function write data into file? Write two function read data from file? Write   program to copy file another using command line argument. What is purpose of fseek() &ftell() what is advantages of File in C.