Write a program to print "hello world" without using a semicolon?



Write a program to print "hello world" without using a semicolon?..

Answer / Nidhi Paswan

In C language, it is possible to write a program that prints "hello world" without using a semicolon. However, it's not recommended due to the potential for confusion and errors. Here's an example:

```c
#include <stdio.h>

int main(void) {
printf("hello world");
return 0;
}
```
In this code, the printf function call prints "hello world" to the console without a semicolon.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the difference between i++ and ++i?

5 Answers  


What does 2n 4c mean?

1 Answers  


What is an example of enumeration?

1 Answers  


to find the program of matrix multiplication using arrays

6 Answers   Bhel,


What is scanf_s in c?

1 Answers  


What is the proper way of these job Tell me about there full work

0 Answers   EDS,


here is a link to download Let_Us_C_-_Yashwant_Kanetkar

3 Answers   Microsoft,


What are the types of data structures in c?

1 Answers  


What is 1d array in c?

1 Answers  


What is an lvalue?

1 Answers  


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1 Answers  


Which type of language is c?

1 Answers  


Categories