7. C Programming Tutorials in Urdu - Comments And Whitespace - Urdu Tutorials

Опубликовано: 16 Май 2026
на канале: MavenApt Tutorials
8,437
36

For more free Urdu Tutorials click here: http://bit.ly/ZcRlXc
Like us on facebook: http://on.fb.me/13Z3CqS
Follow us on twitter: http://bit.ly/13Z3LKP

This video is about C programming language Comments And Whitespace in Urdu. In this Urdu Tutorials Series I teach you how to program in C programming language.

Comments
A "comment" is a sequence of characters beginning with a forward slash/asterisk combination (/*) that is treated as a single white-space character by the compiler and is otherwise ignored. A comment can include any combination of characters from the representable character set, including newline characters, but excluding the "end comment" delimiter (*/). Comments can occupy more than one line but cannot be nested. Comments can appear anywhere a white-space character is allowed. Since the compiler treats a comment as a single white-space character, you cannot include comments within tokens. The compiler ignores the characters in the comment. Use comments to document your code. This example is a comment accepted by the compiler:
/* Comments can contain keywords such as
for and while without generating errors. */

Comments can appear on the same line as a code statement:
printf( "Hello" ); /* Comments can go here */

Whitespace
Space, tab, linefeed, carriage-return, form feed, vertical-tab, and newline characters are called "white-space characters" because they serve the same purpose as the spaces between words and lines on a printed page — they make reading easier. Tokens are delimited (bounded) by white-space characters and by other tokens, such as operators and punctuation. When parsing code, the C compiler ignores white-space characters unless you use them as separators or as components of character constants or string literals. Use white-space characters to make a program more readable. Note that the compiler also treats comments as white space.