Google Search

Sunday, June 5, 2011

LENGTH OF MACRO : To create a program in c implementing files to find the macrolength of a file.


LENGTH OF MACRO

Aim: To create a program in c implementing files to find the macrolength of a file.

Algorithm:

  1. Create and open a file in read mode.
  2. Type words between macro and mend.
  3. Save the file and open it.
  4. Read  its content.
  5. Increment the counter variable till the string comparison is not equal to zero.
  6. Decrement the counter variable once it is equal to zero.
  7. Print the counter variable which is number of lines.
  8. End.

0 comments:

Post a Comment