- Program :
#include<stdio.h>
int main()
{
int a = 5, b = 10, sum;
printf("\n----------------WITHOUT USING <CONIO.H>----------------");
sum = a + b;
printf("sum = %d\n",sum);
return 0;
}
type *var-name;
union [union tag] { member definition; member definition; ... member definition; } [one or more union variables];
struct [structure tag] { member definition; member definition; ... member definition; } [one or more structure variables];
void recursion() { recursion(); /* function calls itself */ } int main() { recursion(); }
type name[size1][size2]...[sizeN];
for (initialization; condition; increment )
{
//statement block; }
do { Statement; }while(condition test);
while (condition test) { //Statements to be executed repeatedly // Increment (++) or Decrement (--) Operation }
switch( expression ) { case value-1: Block-1; Break; case value-2: Block-2; Break; case value-n: Block-n; Break; default: Block-1; Break; } Statement-x;
goto label;
... .. ...
... .. ...
label:
statement;
if (condition) statement; else if (condition) statement; . . else statement;
if (condition1) { // Executes when condition1 is true if (condition2) { // Executes when condition2 is true } }
if (condition) { // Executes this block if // condition is true } else { // Executes this block if // condition is false }
if(condition) { // Statements to execute if // condition is true }
https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) { return...