GeekInterview.com
Series: Subject: Topic:
Question: 72 of 587

Read Specified Number of Elements

What function will read a specified number of elements from a file?
Asked by: shamina sasankan | Member Since Dec-2010 | Asked on: Dec 15th, 2010

View all questions by shamina sasankan

Showing Answers 1 - 3 of 3 Answers
rocking.piyush

Answered On : Feb 22nd, 2011

View all answers by rocking.piyush

its the read() function

the syntax is

int bytes = (fp, buf,1);

First argument is the source file, second argument is the address of the buffer and the third argument is the maximum number of bytes we want to read.

It returns the number of bytes actually read.

  
Login to rate this answer.
kiran.eemuru

Answered On : Aug 1st, 2012

fread() function will read a specified number of elements from a file .

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.