UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is a void main() in the C programming language?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

I Train C,C Plus Plus,JAVA,Advanced JAVA,SQL

A Program starts executing from main().void is a datatype which means null.It Means the main function returns nothing.
Comments

My teaching experience 12 years

In C, `void main()` is not a standard signature for the `main` function. The correct signature for the `main` function in C is `int main()`. The `int` return type indicates that the function returns an integer value, typically used to convey the exit status of the program to the operating system. The...
read more
In C, `void main()` is not a standard signature for the `main` function. The correct signature for the `main` function in C is `int main()`. The `int` return type indicates that the function returns an integer value, typically used to convey the exit status of the program to the operating system. The `void` keyword indicates that the function does not return any value. Using `void main()` is a common mistake or misunderstanding, and it may not be supported by all compilers. read less
Comments

Software Engineer, with excellent knowledge

In the C programming language, void main() is not a valid signature for the main function. The correct signature for the main() function in C is either int main() or int main(int argc, char *argv). The main() function serves as the entry point of a C program. It is where the execution of the program...
read more

In the C programming language, void main() is not a valid signature for the main function. The correct signature for the main() function in C is either int main() or int main(int argc, char *argv[]).

The main() function serves as the entry point of a C program. It is where the execution of the program begins. The int return type indicates that the main() function should return an integer value to the operating system upon completion. By convention, a return value of 0 typically indicates successful execution, while a non-zero value indicates an error or abnormal termination.

Here's a brief explanation of the correct signatures:

  1. int main(): This signature is used when your program doesn't require any command-line arguments. The absence of parameters means that the program doesn't receive any arguments from the command line.

  2. int main(int argc, char *argv[]): This signature is used when your program needs to accept command-line arguments. The argc parameter represents the count of command-line arguments passed to the program, and argv[] is an array of strings containing those arguments.

read less
Comments

C language Faculty (online Classes )

In other words, the void data type is used when we don't want to return any value to the calling function. Furthermore, it is used with the main() function to return nothing and can be used with user-defined and predefined functions in C programming.
Comments

View 2 more Answers

Related Questions

What is the cost of the course?What kind of questions are asked for interviews from C language??
Course fee depends on the depth of the course. Interview question are mainly from DS(Data Structure) importantly linked list, BST tree,array and except this pointer, string, function and recursion is important.
Chandana
Why is C programming language called C?
The C programming language is named "C" because it is a successor to the B programming language. The B language was developed at Bell Labs by Ken Thompson and Dennis Ritchie. When they created C, they...
Ashwini
0 0
6
Is C programming the best for beginners?
Yes, it is good to start with C so that other programming would be easy to understand
Amit
0 0
7
Is c language easy to learn?
The ease of learning C language depends on your prior programming experience and familiarity with certain concepts. For beginners, C can be challenging due to its syntax and manual memory management. However,...
Vikash
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Why Indexing Should Start From Zero In Array ?
Why numbering should start at zero? To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, fourconventions are open to usa) 2 ≤ i < 13b) 1 < i ≤ 12c)...

C for Begginers
C is an procedure oriented programming language. For any begginer the word program is new. Program: Set of instructions to be followed by machine or computer. Instruction Examples: Arithmetic instruction...

Understanding Computer Science Concepts with Images and Videos..
All Computer science concepts relating to programming and software development are only virtual. It cannot be practically shown as a hardware parts of a computer. But for better understanding it should...

Some Tricky Questions in C
Can you write two functions in which one executes before main function and other executes after the main function? #pragma startup #pragma exit Where, priority is optional integer value.For user priority...

Some interview questions and answers for fresher level on Pointers
What is a void pointer? Void pointer is a special type of pointer which can reference or point to any data type. This is why it is also called as Generic Pointer. As a void pointer can point to...

Recommended Articles

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more