wap to print "hello world" without using the main function.
Answer Posted / vaibhav
@Deepika some correction:
#include<stdio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)
int begin()
{
printf("Hello World");
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain what is the benefit of using #define to declare a constant?
What is switch in c?
What is bubble sort technique in c?
Write a program to print all permutations of a given string.
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Can the “if” function be used in comparing strings?
List the difference between a "copy constructor" and a "assignment operator"?
What are the types of operators in c?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What are run-time errors?
How is a null pointer different from a dangling pointer?
What are the different types of errors?
code for replace tabs with equivalent number of blanks