Question

we know getc() could be a function or a macro , please take example by code...

we know getc() could be a function or a macro , please take example by code for each one  

Homework Answers

Answer #1

getc() is one of the inbuilt functions which is used to reads the characters of the file.

getc() can be used in macro than a function.

It returns the next character of the file and it also returns end of file ( EOF).

Refer the below code using getc():

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
using matlab please present code for the following (ALL PARTS PLEASE AND THANK YOU) 1. No...
using matlab please present code for the following (ALL PARTS PLEASE AND THANK YOU) 1. No Input/No Output Write a function that has no input and no outputs. This function will simply display some text when it is called. (this is my code, are there suggestions for improvements?) function Display() disp('some text') end 2. 1 Input/No Outputs Write a function with one input and no outputs. This function will simply display a variable that is provided as an input argument....
Give an example of how companies adapted themselves about changing macro-environments during Covid-19. please write specific...
Give an example of how companies adapted themselves about changing macro-environments during Covid-19. please write specific example in your own words
using dr.racket programing language If we write a function that tests whether a list contains only...
using dr.racket programing language If we write a function that tests whether a list contains only strings, odd numbers, or even numbers, you will notice that the code that iterates through the list stays the same, with the only change being the predicate function that checks for the desired list element. If we were to write a new function for each of the tests listed above, it would be more error-prone and an example of bad abstraction. We could write...
Normal distribution could be used to approximate the binomial distribution under certain conditions. We already know...
Normal distribution could be used to approximate the binomial distribution under certain conditions. We already know the binomial probability distribution formula, so why is it necessary to learn this one? When is it useful to approximate the binomial distribution as normal? Provide an example.
What is the difference between a module and a function? Give one example of each either...
What is the difference between a module and a function? Give one example of each either with pseudo code or a short description.
We all know that major healthcare organizations have their own Code of Ethics. But many employees...
We all know that major healthcare organizations have their own Code of Ethics. But many employees wonder why the Code of Ethics is even needed because it is not much addressed in a daily work routine. What is the nature of the Code of Ethics and how is it used in practical administrative practice
python code Write the function definition for a function which accepts one value from the main...
python code Write the function definition for a function which accepts one value from the main program and prints three times the number that is sent to it. For example, if the program sent 8, the function would print 24.
Assume one input, one output production function which we know very little about. But over a...
Assume one input, one output production function which we know very little about. But over a period of three years we see that (1) with p = 1,w = 1 the firm choose x = 2,y = 5 (2) with p = 3,w = 0.5, the firm will choose x = 4 and y = 6 and (3) withp=4,w=2,thefirmwillchoosex=3,y=11. Graph the isoprofit lines associated with each pair of prices and quantity choices. Show on your graph what we have learned...
Use R Studio (show the code and output) Please write an R function named “outlier_detect” to...
Use R Studio (show the code and output) Please write an R function named “outlier_detect” to return or print out the outliers from a given data vector. outlier_detect = function(x){ #x: a column of numeric vector Body of code }
We know that 6% of students will fail a course. If I take a sample of...
We know that 6% of students will fail a course. If I take a sample of 1200 students who take an online stats course find the probability that more than 100 will fail? To solve this problem we could do it without Minitab and would be done in the following manner you answer the questions asked where x = number of students who fail P(x > 100)   x has what type of distribution? ___________________ P(x > 100.5) x has what...