write a c program to print "Welcome" without using semicolon
in the whole program ??
Answer Posted / peanut64
//C++
#include <iostream>
using namespace std;
void main()
{
while((cout<<"hello"<<endl)==false)
{
}
}
//c
#include <stdio.h>
void main()
{
while(printf("Hello")==false)
{
}
}
[My lecturer asked me this question. The above solution
works for me]
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the scope of an external variable in c?
What is pointers in c with example?
How do you search data in a data file using random access method?
What is function definition in c?
How do I read the arrow keys? What about function keys?
Why is c called a structured programming language?
code for find determinent of amatrix
What functions are used for dynamic memory allocation in c language?
How can I change their mode to binary?
What are the types of type qualifiers in c?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
all c language question
How many levels of indirection in pointers can you have in a single declaration?
How can you increase the size of a statically allocated array?
What is the scope of static variable in c?