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 use of sizeof () in c?
Explain what is the general form of a c program?
What is "Duff's Device"?
How can I split up a string into whitespace-separated fields?
What is the benefit of using const for declaring constants?
What is a nested formula?
In which layer of the network datastructure format change is done
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Is c easy to learn?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Do you have any idea about the use of "auto" keyword?
What is the difference between exit() and _exit() function?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.