answersLogoWhite
Computer Programming
C Programming

Can you explain the structure of a C program?


Top Answer
User Avatar
Wiki User
Answered 2009-03-08 14:17:30

Something like this:

program -> <empty>

program -> type-definition program

program -> type-declaration program

program -> variable-definition program

program -> variable-declaration program

program -> function-definition program

program -> function-declaration program

123
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Related Questions


discuss the structure of c program with suitable example.


The basic structure of a C program is documentations, preprocess or statements, then global declarations.


You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?


#include&lt;stdio.h&gt; main() { exe stat1; exe stat2; . . . } where # is pre processsor directive main() program starts execution from this point void main() function can also be used where it returns no value.


Explain the following terms in the context of object oriented programming. Also explain how these concepts are implemented in C++ by giving an example program for each.



A-C-E standing for Answer, Cite, Explain.


explain structure of computer


1.to clarify the program logic. 2. to serve as a guide for the program coding. 3. helps to identify alternative methods. BY. Brian Mwamuye Mwananje From Mombasa Kenya


You declare a structure as follows:struct name {typename_1 member_name_1; typename_2 member_name_2;// additional members...};


There is no single structure to a C++ program. C++ is multi-paradigm and allows programmers to use any combination of C-style programming, object-oriented programming and template metaprogramming using a mixture of primitive built-in types, standard library types and user-defined types.


The basic structure of a C++ program consists of primitive variables and constants, classes to encapsulate data and to operate upon that data, and external functions to manipulate the variables and objects instantiated from those classes. The minimum requirement of any C++ program is the same as for C: a main function.


explain parameter passing methods c program


The basic structure of a C or C++ program is built around types. A structure is a type. A function is a type. A class is a type. All of these types can be built from primitive (built-in) types and can be used to create ever-more complex types.


parts of a programStructure of C++ programDocumentation SectionPreprocessor SectionDefinition SectionGlobal Declaration Sectionmain(){Declaration part;Executable part;}sub program section{Sub program execution part}


Include header file section>Global declaration section/*Comments*/function name main(){/*comments*/Local declaration section;Executable section;User defined functions{__________________________________________}}


You can use unlimited number of variables for a structure and you can also declare array of structures.


int main(int argc, char **argv) { return 0; }



A java program is a program that is coded and run in the programming language called java. Java is similar to c++ in structure, and is more common in web apps. C++ is the equivalent for more heavy duty programs such as most software used to compose a java program.


The central feature of any C++ program is classes which can be used to express ideas directly in code.


I guess you mean C++, not C.Data fields of a structure/union are public by default,those of a class are private by default.


when creating a computer program, system analyst design the structure of the program


class is defined in c++ my dear so in C there is no structure of class.for c++ class private { int x[10],y; cout


Joseph. Bergin has written: 'Data structure programming' -- subject(s): C (Computer program language), C++ (Computer program language), Data structures (Computer science), Standard template library 'Data abstraction' -- subject(s): Object-oriented programming (Computer science), C++ (Computer program language), C (Computer program language)



Copyright ยฉ 2021 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.