๐—œ๐—ป ๐˜๐—ต๐—ฒ ๐—ฝ๐—ฟ๐—ฒ๐˜€๐—ฒ๐—ป๐˜ ๐—ฐ๐—ผ๐—ป๐—ฑ๐—ถ๐˜๐—ถ๐—ผ๐—ป, ๐—ฎ๐—ฐ๐—ฐ๐˜‚๐—บ๐˜‚๐—น๐—ฎ๐˜๐—ถ๐—ป๐—ด ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฒ๐˜ƒ๐—ฒ๐—ป๐˜๐˜‚๐—ฎ๐—น๐—น๐˜† ๐—ฑ๐—ถ๐˜€๐—ถ๐—ป๐˜๐—ฒ๐—ด๐—ฟ๐—ฎ๐˜๐—ฒ๐˜€ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฐ๐—ฎ๐—ฝ๐—ฎ๐—ฐ๐—ถ๐˜๐˜†. ๐—œ๐—ป ๐˜๐—ต๐—ฒ ๐—ฒ๐˜ƒ๐—ฒ๐—ป๐˜ ๐˜๐—ต๐—ฎ๐˜ ๐˜†๐—ผ๐˜‚ ๐—ธ๐—ป๐—ผ๐˜„ ๐˜€๐—ผ๐—บ๐—ฒ๐˜๐—ต๐—ถ๐—ป๐—ด ๐˜€๐—ถ๐—ด๐—ป๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐—ป๐˜, ๐˜๐—ต๐—ฒ ๐—ฏ๐—ฒ๐˜€๐˜ ๐—ฎ๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต ๐˜๐—ผ ๐—ด๐—ฒ๐˜ ๐—ฝ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—ถ๐˜€ ๐—ฏ๐˜† ๐—ฟ๐—ฒ๐—ฎ๐—น๐—น๐˜† ๐˜€๐—ต๐—ฎ๐—ฟ๐—ถ๐—ป๐—ด ๐—ถ๐˜. | Shalu Anand

Post

editor-img
Shalu Anand
Oct 11, 2022

๐—œ๐—ป ๐˜๐—ต๐—ฒ ๐—ฝ๐—ฟ๐—ฒ๐˜€๐—ฒ๐—ป๐˜ ๐—ฐ๐—ผ๐—ป๐—ฑ๐—ถ๐˜๐—ถ๐—ผ๐—ป, ๐—ฎ๐—ฐ๐—ฐ๐˜‚๐—บ๐˜‚๐—น๐—ฎ๐˜๐—ถ๐—ป๐—ด ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฒ๐˜ƒ๐—ฒ๐—ป๐˜๐˜‚๐—ฎ๐—น๐—น๐˜† ๐—ฑ๐—ถ๐˜€๐—ถ๐—ป๐˜๐—ฒ๐—ด๐—ฟ๐—ฎ๐˜๐—ฒ๐˜€ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฐ๐—ฎ๐—ฝ๐—ฎ๐—ฐ๐—ถ๐˜๐˜†. ๐—œ๐—ป ๐˜๐—ต๐—ฒ ๐—ฒ๐˜ƒ๐—ฒ๐—ป๐˜ ๐˜๐—ต๐—ฎ๐˜ ๐˜†๐—ผ๐˜‚ ๐—ธ๐—ป๐—ผ๐˜„ ๐˜€๐—ผ๐—บ๐—ฒ๐˜๐—ต๐—ถ๐—ป๐—ด ๐˜€๐—ถ๐—ด๐—ป๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐—ป๐˜, ๐˜๐—ต๐—ฒ ๐—ฏ๐—ฒ๐˜€๐˜ ๐—ฎ๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต ๐˜๐—ผ ๐—ด๐—ฒ๐˜ ๐—ฝ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—ถ๐˜€ ๐—ฏ๐˜† ๐—ฟ๐—ฒ๐—ฎ๐—น๐—น๐˜† ๐˜€๐—ต๐—ฎ๐—ฟ๐—ถ๐—ป๐—ด ๐—ถ๐˜.

media

๐—Ÿ๐—ฒ๐˜'๐˜€ ๐—•๐—ฒ๐—ด๐—ถ๐—ป ๐ฐ๐ข๐ญ๐ก ๐ƒ๐š๐ฒ 4 :

๐šœ๐šŽ๐š›๐š’๐šŽ๐šœ ๐š˜๐š ๐šœ๐š‘๐šŠ๐š›๐š’๐š—๐š ๐š–๐šข ๐š”๐š—๐š˜๐š ๐š•๐šŽ๐š๐š๐šŽ ๐š˜๐š ๐š๐š‘๐šŽ ๐™ฒ ๐™ป๐šŠ๐š—๐š๐šž๐šŠ๐š๐šŽ.

๐๐ซ๐จ๐ ๐ซ๐š๐ฆ ๐ญ๐ž๐ซ๐ฆ๐ข๐ง๐š๐ญ๐ข๐จ๐ง

A return from the initial call to the main function is equivalent to calling the exit function with the value returned by the main function as its argument. If the main function executes a return that specifies no value, the termination status returned to the host environment is undefined.

๐“๐ก๐ž ๐ซ๐ž๐ญ๐ฎ๐ซ๐ง ๐ฌ๐ญ๐š๐ญ๐ž๐ฆ๐ž๐ง๐ญ

If a return statement without an expression is executed, and the value of the function call is used by the caller, the behavior is undefined. Reaching the } that terminates a function is equivalent to executing a return statement without an expression.

๐๐ซ๐จ๐ ๐ซ๐š๐ฆ ๐ญ๐ž๐ซ๐ฆ๐ข๐ง๐š๐ญ๐ข๐จ๐ง

If the return type of the main function is a type compatible with int, a return from the initial call to the main function is equivalent to calling the exit function with the value returned by the main function as its

argument; reaching the } that terminates the main function returns a value of 0. If the return type is not compatible with int, the termination status returned to the host environment is unspecifified.

๐‚๐จ๐ฆ๐ฆ๐ž๐ง๐ญ๐ฌ

Comments are used to indicate something to the person reading the code. Comments are treated like a blank by the compiler and do not change anything in the code's actual meaning.

There are two syntaxes used for comments in C, the original /* */ and the slightly newer //. Some documentation systems use specially formatted comments to help produce the documentation for code.

๐‚๐จ๐ฆ๐ฆ๐ž๐ง๐ญ๐ข๐ง๐  ๐ฎ๐ฌ๐ข๐ง๐  ๐ญ๐ก๐ž ๐ฉ๐ซ๐ž๐ฉ๐ซ๐จ๐œ๐ž๐ฌ๐ฌ๐จ๐ซ

Large chunks of code can also be "commented out" using the preprocessor directives #๐ข๐Ÿ 0 ๐š๐ง๐ #๐ž๐ง๐๐ข๐Ÿ. This is useful when the code contains multi-line comments that otherwise would not nest.

#if 0 /* Starts the "comment", anything from here on is removed by preprocessor */

/* A large amount of code with multi-line comments */

int foo()

{

/* lots of code */

...

/* ... some comment describing the if statement ... */

if (someTest) {

return 1;

}

return 0;

}

#endif /* 0 */

/* code from here on is "uncommented" (included in compiled executable) */

FOLLOW Shalu Anand FOR MORE :)