Category: C language

0

Silly Codes : C Program to Perform Arithmetic Operations on Given Integers | Arithmetic operations C program

/******************Program****************/

/******************OUTPUT****************/ Related Reading : C program to test Leap year  C program to Find Area and...

Power Function without using any loop in C | a power of b program in C 0

Power Function without using any loop in C | a power of b program in C

/********** a power b program in C ***************/ #include<stdio.h> main() { int a,b,r; printf(“Enter two values :”); scanf(“%d%d”,&a,&b); r=a;...

Write a program to accept a character and determine whether it is an alphabet, character or special symbol 0

Write a program to accept a character and determine whether it is an alphabet, character or special symbol

/********* Program **********/ #include<stdio.h>#include<ctype.h> main(){        char ch;        printf(“Enter character to test :”);        scanf(” %c”,&ch);         if(isalpha(ch))  //is alpha available...

Write a program to check that the input string is a palindrome or not 0

Write a program to check that the input string is a palindrome or not

/******* Program **********/ #include<stdio.h>#include<string.h>main(){        char str[20];        int i,j,len,cnt;        cnt = 0;         printf(“Enter string to test :”);        scanf(“%s”,str);...