wap to print "hello world" without using the main function.
Answers were Sorted based on User's Feedback
Answer / raghuram
To display "hello world"
printf("\"hello world\"");
| Is This Answer Correct ? | 5 Yes | 57 No |
Answer / guest
#include<stdio.h>
#include<conio.h>
printf("hello world");
| Is This Answer Correct ? | 3 Yes | 62 No |
Who developed c language?
int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }
union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }
Why we use void main in c?
2. What does static variable mean?
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }
int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i);
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?
1.What is a Data Structure? Explain its need? 2.What is a Directed Graph? Write an algorithm to find whether a Directed Graph is connected or not? 3.Explain the process of converting a Tree to a Binary Tree.
What is the difference between c &c++?
What is graph in c?
How to implement a packet in C