answersLogoWhite

0

Any valid file name is a valid name for a C source file. The extension itself is immaterial; it is part of the file name and only serves as a means of organising files. The extensions .c and .h are merely a convention. You don't have to use them if you don't want to, but it makes sense to stick to the recognised conventions, particularly if you intend to distribute your source.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is the name of the C structure type?

The type is struct. The name can be any valid variable name that is not a keyword or other reserved name.


Is the word main an illegal variable name in C PLUS PLUS?

I can tell you that it is not an illegal variable name in C. I do not currently have a C++ compiler installed, but I would assume that it would also be valid in C++.


What are the five rules or characteristics of valid variable name?

Valid variable names are different in different programming languages. In LabView (a front end for C): A valid variable name begins with a letter followed by a number of letters, digits, or underscores. The length of a valid variable name must be less than or equal to maxnamelen.


What is valid CLASS-C host address?

An example of a valid class C address would be 192.168.6.200


How can you print your name in c or c plus plus with out using semi column?

You can not print your name in C without a semi colon because according to the rules of C every statement should end with a semi colon.In fact without the semi colon it fails to be a valid C statement.


Can you change the name of function in c program?

In the source, you mean? Use a text-editor.


What is the differentiate of turbo c from turbo c plus plus?

Turbo C compiles c source. turbo c++ compiles c++ source code.


Why is 'C' the name-extension when saving a program in Turbo C?

Convention. Of course you can use any other extension, like 'helloworld.my-own-c-source' instead of 'helloworld.c' but why should you?


What represents valid integer number in c language?

1500


A c plus plus code name sumcpp saved on a diskis it process or job?

It is neither. It is a source file.


Getting source code of c?

C is a programming language, so it doesn't have source code.(On the other hand, C compilers do have source code, but you, as a beginner in programming, could not understand them.)


Can you have two mains in a c?

Function names cannot be duplicated in a source file. Different source files may have functions with the same name, if they are static (all, or all but one).