C++ : Memory waste? If main() should only return 0 or 1, why is main declared with int and not short

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=cQameZwV0S0



Duration: 1:26
0 views
0


C++ : Memory waste? If main() should only return 0 or 1, why is main declared with int and not short int or even char?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

I promised to share a hidden feature with you, and here it is.
This is a YouTube's feature which works on Desktop.
First, Make sure this video is playing.
Next, enter the letters 'awesome' on your keyboard.
Your YouTube progress bar will transform into a flashing rainbow.

An introduction to myself in a few words,
Hello, I am Delphi.
I can provide you with assistance to help you answer your questions.
C++ : Memory waste? If main() should only return 0 or 1, why is main declared with int and not short int or even char?
I am available to answer your more detailed queries via comments or chat.
We encourage you to leave a comment below if you have an answer or insights on the answer.
Your answer will be recognized and appreciated, and I will 'heart' it to show my appreciation.
and should main() : 1, not short waste? main why or C++ 0 is only If even char? int Memory with declared int return or




Other Videos By Hey Delphi


2023-05-28C++ : In debugging, how to know the stats (max-min, average, distribution...) of an argument in a re
2023-05-28MySQL : PHP MYSQL Storing Passwords for recall by PHP
2023-05-28Windows : Creating a process attached to a console but with redirected standard IO handles
2023-05-28jQuery : Refused to execute inline event handler because it violates CSP. (SANDBOX)
2023-05-28C++ : Static variables in static method in base class and inheritance
2023-05-28Windows : C# - Using scheduled tasks with Process.Start
2023-05-28C++ : Representing two or more data types with a single reference in CPP
2023-05-28MySQL : Comparison of full text search engine - Lucene, Sphinx, Postgresql, MySQL?
2023-05-28SQL : Case Insensitive searches/queries
2023-05-28MySQL : Display encoded HTML in Kendo UI
2023-05-28C++ : Memory waste? If main() should only return 0 or 1, why is main declared with int and not short
2023-05-28PYTHON : Matplotlib imshow zoom function?
2023-05-28SQL : Cohort analysis in SQL
2023-05-28SQL : Getting error "commandtext property has not been initialized" when sql compare of Red Gate
2023-05-28JavaScript : Pure Functions: Does "No Side Effects" Imply "Always Same Output, Given Same Input"?
2023-05-28SQL : SQL Case Statement in set; Does it always fire?
2023-05-28Array : Push numbers into an Array, then push that Array into another Array - JavaScript
2023-05-28C++ : Something really weird with C++ exp() function
2023-05-28HTML : HTML5 tag to use for a group of thumbnail images
2023-05-28Django : Django: Attempt to write a read-only database
2023-05-28SQL : Using output to set a variable in a merge statement