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 do you know about the use of bit field?
How can I implement sets or arrays of bits?
What should malloc(0) do?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What do you mean by dynamic memory allocation in c? What functions are used?
Are pointers integer?
Why do we need volatile in c?
will u please send me the placement papers to my mail???????????????????
What is realloc in c?
What is c value paradox explain?
Explain how do you sort filenames in a directory?
What is the use of bit field?
What is the general form of #line preprocessor?
What is structure padding in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?