answersLogoWhite

0


Best Answer

None. You are probably referring to keywords but keywords are not commands. In computing, a command is something that executes machine code in a timely manner (i.e., as immediately as possible). C keywords do not execute any code because the keywords are not immediately executable. In order to execute C code it must first be compiled and then linked, at which point it is no longer C, it is native machine code, and that machine code executes completely independently of the source code. The C compiler can also output an assembly source which allows us to view the machine code in a more user-friendly manner. Again, assembly is non-executable so there are no commands; we must assemble the source to create the native executable code, the only language the machine actually understands.

All C keywords are built-in identifiers that have special significance to the language itself. User-defined identifiers also have significance but, unlike keywords, we must declare their significance in terms of the language before we can actually use them in our code. By contrast, built-in identifiers do not need to be declared before we use them because the compiler already knows what they represent (hence they are built-in).

Many C keywords represent built-in data types, type modifiers, type information (operators) and storage classes:

bool, char, const, double, enum, float, int, long, short, signed, sizeof(), static, struct, typedef, unsigned, void

The remainder represent high-level control flow constructs:

break, case, continue, default, do, else, for, goto, if, return, static, switch, while

C also supports preprocessor directives and one preprocessor operator which are not part of the language itself, but are used specifically by the C preprocessor in order to generate C code for the compiler as part of the compilation process. Given that the compiler never actually sees them, they are not keywords, however they are included here for the sake of completeness.

#define, defined(), #elif, #else, #endif, #error, #if, #ifdef, #ifndef, #include, #pragma, #undef

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many commands are there in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you read and write to files in C programming language?

We can read and write to files with the help of file commands in c programming.There are so many commands related to file for read,write,append,delete etc.


How use find command in c language?

C language doesn't have commands only instructions. Sadly, 'find' is not an instruction in C, you might have misunderstood something.


What is the role of c language in electronics?

Before we start to learn any programming language it is neccessary to understand basics of C language because it is middle level language as it is strongly used to develop system level softwares and it has rich set it of commands


Different unconditional statement in C programming language?

The C programming language is generally made up of common conditional statements. Occasionally, unconditional statements such as test that are based on imperative commands.


List of command used in c language?

It's easy: there are no commands in C, but a few statements (such as: expression, if, else, switch, while, do-while, for, break, continue, return and goto), and countless library functions (like printf, malloc and fopen).


What is getche command in c language?

There are no commands in C.TurboC has got a function called getche, read the help (type into the editor: getche +)


Explain any six file commands in C plus plus?

There's no commands in C++.


Can you give name commands to trolls or do name commands only apply to faeries and pixes?

You can give commands but you have to learn the troll language's.


What type of compiler is c?

C is a programming language. Its rules describe how programmers specify commands to the computer. For example, the following is a line of C code that displays hello on the screen: printf("Hello"); You can contrast the above with the following, which is how C++ code displays hello on the screen: cout << "Hello"; A compiler is a program that translates text the programmer writes into machine code... which is the language understood by the internal hardware of the computer. There are many C compilers on the market, including: GNU C, Microsoft Visual C++ (which can compile C), etc.


How do you write assembly level language program in c?

Unless your particular C implementation allows for direct writing of assembly code, you can't. C is a high-level language and you usually cannot directly issue instructions to the processor. The assembly languages are a set of architecture-specific commands that can be directly executed by a processor.


What is the compound in c language?

compound c language is complicated where we need to use many nested functions and loops


What are the levels of programming language?

It are machine code and Assembly.