C Program To de-WPS Office
C Program To de-WPS Office
// auto keyword
#include <stdio.h>
int printvalue()
printf("%d", a);
int main()
printvalue();
return 0;
#include <stdio.h>
int main()
if (i == 2)
{ continue;
if (i == 6)
break;
return 0;
// C program to demonstrate
#include <stdio.h>
int main()
int i = 4;
switch (i)
case 1:
printf("Case 1\n");
case 2:
printf("Case 2\n");
case 3:
printf("Case 3\n");
case 4:
printf("Case 4\n");
default:
printf("Default\n");
// C program to demonstrate
// char keyword
#include <stdio.h>
int main()
char c = 'a';
printf("%c", c);
return 0;
}
// C program to demonstrate
// do-while keyword
#include <stdio.h>
int main()
int i = 1;
do
i++;
return 0;
// C program to demonstrate
#include <stdio.h>
int main()
float f = 0.3;
double d = 10.67;
return 0;
// An example program to
// demonstrate working of
// enum in C
#include<stdio.h>
int main()
day = Wed;
printf("%d", day);
return 0;
}
// C program demonstrate
// goto keyword
#include <stdio.h>
// from 1 to 10
void printNumbers()
int n = 1;
label:
n++;
if (n <= 10)
goto label;
int main()
printNumbers();
return 0;
// C program to demonstrate
// int keyword
#include <stdio.h>
void sum()
int sum;
sum = a + b;
printf("%d", sum);
// Driver code
int main()
sum();
return 0;
// C program to demonstrate
#include <stdio.h>
int main()
// short integer
// signed integer
// L or l is used for
// long int in C.
return 0;
// C program to demonstrate
// return keyword
#include <stdio.h>
int sum;
sum = x + y;
return sum;
}
// Driver code
int main()
printf("Sum: %d",
sum(num1, num2));
return 0;
// C program to demonstrate
// struct keyword
#include <stdio.h>
#include <string.h>
struct Books
char title[50];
char author[50];
};
// Driver code
int main( )
strcpy(book1.author, "M.S.Patil");
return 0;
#include <stdio.h>
union student
int age;
char marks;
}s;
// Driver code
int main()
s.age = 15;
s.marks = 56;