Dothese two program statements perform the same output? 1) scanf("%c", &letter); 2) letter=getchar()
4 years ago
C Programming
Yes, they both do the exact same thing, which is to accept the next key pressed by the user and
If the amount of data stored in a file is fairly large, the use of random access will allow you to search through it quicker. If it had been a sequential access file, you would have to go through one record at a time until you reach the target data. A random access file lets you jump directly to the target address where data is located.
Sanisha Maharjan
Jan 20, 2022