We can check given word is palindrome or not through below code:- #include<stdio.h> #include<string.h> main( ) { char str[10];
Continue readingCategory: C Programming
Write A program in C to copy one string into another String ?
/ ** Write A program in C to copy one string into another String **/ void stringCpy(char* s1,char* s2); int
Continue readingC Program to Check Armstrong Number
/* write A C Program to Find Armstrong Number */ #include <stdio.h> int main() { int num, sum=0, rem=0,temp; printf(“Enter
Continue readingprogram to check number is Palindrome or not in C?
#include <stdio.h> int main() { int num, rev=0, rem=0,temp; printf(“Enter an integer number: “); scanf(“%d”, &num); temp=num; while(temp!=0) { rem=temp%10;
Continue readingWrite a program to swap two numbers without using third variable?
#include <stdio.h> int main() { int i,j,k; printf(” Enter value of i “); scanf(“%d”,&i); printf(” Enter value of j ?
Continue readingWrite A program to swap two bits of a byte in C
#include <stdio.h> int main() { unsigned char ndata=0x0A; binary of 0x0A is : 0000 1010 ndata^=(1<<1); ndata^=(1<<2); // data will
Continue readingWrite a program in C program to find factorial of a number
/** program to find factorial of a number**/ #include <stdio.h> int main() { int number,k; long int fact; printf(“Enter an
Continue readingHow to generate random numbers in C programming?
we can generate random number through rand() function. #include<stdio.h> #include<stdlib.h> int main() { int a; int b; for(a=1;a<11;a++) { b=rand();
Continue readingWhat are the modifiers available in C programming?
There are 5 modifiers available in C programming and these are follows:- Short Long Signed Unsigned long long
Continue readingWhat are the storage class specifiers in C?
There are four different Types of Storage classes in C :- auto, register, static, extern
Continue reading