answersLogoWhite

0

What are the basic syntax of c program?

Updated: 8/20/2019
User Avatar

Wiki User

10y ago

Best Answer

You have to be more specific. What part of C syntax? Do you want the syntax for outputing a number or sentence, do you want to syntax for creating a array, struct, a user defined function or what?

#include iostream

using namespace std;

int main

{

cout << "Hello World!" << endl;

return 0;

};

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the basic syntax of c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is java program made of?

basic unit of C is structure like procedure ,syntax's, error's compiler etc


Syntax of turbo c?

+ += - -= * *= / /= % %= = == != &lt;= &gt;= &amp; &amp;&amp; | ^ ~ &lt;&lt; &lt;&lt;= &gt;&gt; &gt;&gt;= , [] () are the basic operator in TURBO C


What is the basic syntax of C?

+ += - -= * *= / /= % %= = == != &lt;= &gt;= &amp; &amp;&amp; | ^ ~ &lt;&lt; &lt;&lt;= &gt;&gt; &gt;&gt;= , [] () are the basic operator in TURBO C


Is c an application or software?

"C" is a programming language. It is implemented by writing a program using the C syntax and then translated by a compiler, which is an application program.


What are the basic difference between c sharp and vbnet?

They use different syntax.


How do you write a program in visual foxpro?

Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.


Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


What is the use of compiler in c language?

Compilers check correctness of your program syntax, memory allocation procedures and so on.


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; }


Is c plus plus and java are the same?

No. Java takes some ideas from C++, so there are certain similarities, especially in the basic syntax. But it is a different language.


Missing semicolon in c program is a compile time error?

It's a syntax error, which is detected during compilation, yes.


Which language is source program written?

The Java language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities