write a C program to print the program itself ?!
Answer Posted / hillel
#include<fstream>
void main()
{
std::ifstream is(__FILE__);
while(!is.eof())
printf("%c", is.get());
is.close();
}
Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What are the salient features of c languages?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
about c language
When c language was developed?
Which is best book for data structures in c?
What is the use of a static variable in c?
What is data types?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Explain how do you override a defined macro?
What is double pointer in c?
Write a program to check palindrome number in c programming?
What is the advantage of a random access file?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Is sizeof a keyword in c?