University of Mumbai BE Chemical Engineering Semester 2 (FE First Year) Important Questions for Structured Programming Approach - Pointer and Files
Advertisements
Advertisements
Chapter wise important questions with answers and solutions for Structured Programming Approach in University of Mumbai BE Chemical Engineering Semester 2 (FE First Year).
What is pointer? Explain how the pointer variable declared and initialized.
Chapter: [14] Pointer and Files
Select the correct option from multiple choice question.
void main() {
char a[]= “Hello world”;
char *p;
p=a;
printf(“\n%d%d%d%d”,sizeof(a),sizeof(p),strlen(a),strlen(p) ); }
Chapter: [14] Pointer and Files
State True or False with reason.
Size of pointer variable is equal to the datatype it points to.
Chapter: [14] Pointer and Files
State True or False with reason.
The statement void p; is valid.
Chapter: [14] Pointer and Files
Explain need of file data and various modes of files also write program to create edit copy of file.
Chapter: [14] Pointer and Files
Explain file handling in c in details.[Note: Mention file type, file
modes, file related functions and its use)
Chapter: [14] Pointer and Files
Why files are needed? Explain all the opening modes. Write a program to create copy of the user specify names of source and destination files.
