what is use#in c
Answers were Sorted based on User's Feedback
# is preprocessor which tell compiler that what header
file we using in our program.
for example:
#include<stdio.h>
void main()
in the above when compiler check program it start execution
of program from main and will tell that uor header file
is "standard input output header file"
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / saurabh chakrabarty
# is used in c to write preprocessor statements (i.e. macros)
these statements are called preprocessor statements as these
statements are processed prior to the compilation of the
rest of the code by the compiler
| Is This Answer Correct ? | 1 Yes | 0 No |
A MobileNumber is a VIP number if it satisfy the following conditions. The operator should be Vodafone. Atleast one 0 (Zero) should be exist in mobile number. The number should not end with 8. The single digit sum of all the digits in the number should be equal to 9. For example if the number is 9876543210, the sum is 9+8+7+...+1+0 = 45. Sum of 4+5 = 9. Write a method: private boolean isVIPMobileNumber(String mobileNum, String operator) mobileNum phone number operator mobile operator as bsnl, Vodafone
What is the Difference between Macro and ordinary definition?
3 Answers Bosch, Cognizant, College School Exams Tests, Motorola,
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?
25 Answers Datamatics, Solartis, TCS, ThinkBox, Trine,
How can I make sure that my program is the only one accessing a file?
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
Explain function?
Explain what are binary trees?
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?
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
Is fortran still used in 2018?
write a program to find the largest and second largest integer from an array
what is a constant pointer in C