Write a C program to check a number is even or odd.
#include<stdio.h> #include<conio.h> main() { int n; printf("\n enter any number"); scanf("%d",&n); if(n%2==0) printf("\n the number is even"); else printf("\n the number is odd"); getch(); }
Output:
Write a C Program That Uses Functions To Delete N – Charactres From A Given Position In A Given String.
Write a C program to print the following pattern output.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Write short notes on the following :
a) BFS
b) Tail recursion
Describe various actions of a shift reduce parsers.