













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Lecture 14
FILE *fptr; int *a; float *b; char *c;
#include <stdio.h> int main ( ) { FILE *fptr1 , fptr2 ; / Declare two file pointers */ int aptr ; / Declare a pointer to an int */ float bptr ; / Declare a pointer to a float / int a ; / Declare an int variable / float b ; / Declare a float variable */
fprintf ( fptr2, "%d %d\n" , aptr , bptr ) ; fprintf ( fptr2, "%d %f\n" , *aptr , *bptr ) ; fprintf ( fptr2, "%d %f\n" , a , b ) ; fprintf ( fptr2, "%d %d\n" , &a , &b ) ; return 0 ; }
Assuming that the above is part of a program that runs without error and the the input file does open, what would be printed to the file Docsity.com
Problem G
Problem G
Problem G
START Flow Chart Declare Varsfinptr,foutptr wpin[20],tempi,changes,x Open Files fin NULL Print “did notopen”
Read in data
Y N
Actions ofagorithm
Print sorted list
END