answersLogoWhite

0

In C, programs are composed of statements. These statements are terminated with a semi-colon, and are collected in sections known as functions. By convention, a statement should be kept on its own line, as shown in the example below:

#include <stdio.h>

int main(void)

{

printf("Hello, World!\n");

return 0;

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Describe the structure of a c program?

Yes, please do.


How do you write socket program in c?

For first find an example program.


What are the Example Output of Calculator Program in C plus plus?

example output of c++ calculator


Example of data program dependency in file system?

-File structure is defined in the program code.


What is a program for lexical analyzer in c?

lex for example.


Why we are specifying C programming as structure oriented program?

Hint. Is not object oriented.


How do you write a c program to analysis a circuit?

There is no need to write a C program for circuit analysis; there are lots of packages out there that already do that (for example, Spice).


Which one of the following items is an example of software A Word-processing program B Keyboard C Printer D Mouse?

Word-processing program


How do you do nested strcutres program in c plus plus?

As its name suggests, a nested structure is a structure which contains another within it. Here is an example in which the "nApple" structure is nested withing the "nTree" structure: #includestruct nApple{int stem;int skin;};struct nTree{int leaves;nApple redDelicious;nApple grannySmith;};


Give an example of computer program?

A C program #include &lt;stdio.h&gt; int main() { printf("Hello, world!"); }


How do you pass in Anna university chennai?

Define c-program and give an example


How do you write a program in c?

Writing a program in C is not a difficult task. You simply need to have a compiler or an editor supporting the syntax defined in the C Standard. An example of the "Hello, World!" program in C: #include &lt;stdio.h&gt; int main () { printf("Hello, World!"); return 0; }