Posts

Showing posts with the label Block Statement

Block, Block Statement and Compound Statement in C++ सी++ में ब्लॉक, ब्लॉक स्टेटमेंट एवं कंपाउंड स्टेटमेंट Block (ब्लॉक)

A block is a compound statement that consists of zero or more statements enclosed within curly braces {} . A block is treated as a single statement wherever a statement is expected in a program. A block begins with an opening curly brace { and ends with a closing curly brace } . ब्लॉक एक कंपाउंड स्टेटमेंट होता है, जिसमें शून्य या उससे अधिक Statements का समूह Curly Braces {} के अंदर लिखा जाता है। प्रोग्राम में जहाँ भी एक Statement की आवश्यकता होती है, वहाँ Block का उपयोग एक Single Statement के रूप में किया जा सकता है। किसी Block का प्रारंभ Opening Curly Brace { से तथा अंत Closing Curly Brace } से होता है। Syntax: { statement1; statement2; statement3; } Block Statement and Compound Statement In C++, the terms block , block statement , and compound statement are commonly used to describe a group of statements enclosed within curly braces {} . Blocks are commonly used with functions, classes, conditional statements, loops, and other control structures. C++ में Block, Block...