C Program to Sort set of strings in alphabetical order
#include<stdio.h> #include<string.h> int main(){ int i,j,count; char str[25][25],temp[25]; puts(“How many strings u are going to enter?: “); scanf(“%d”,&count); puts(“Enter Strings
Read more#include<stdio.h> #include<string.h> int main(){ int i,j,count; char str[25][25],temp[25]; puts(“How many strings u are going to enter?: “); scanf(“%d”,&count); puts(“Enter Strings
Read more#include<stdio.h> #include<string.h> int main(){ /* This array can hold a string of upto 26 * chars, if you are going
Read more#include <stdio.h> #include <math.h> /* This function converts the decimal number “decimalnum” * to the equivalent octal number */ int
Read more#include <stdio.h> void main() { int n, r, npr_var; printf(“Enter the value of n:”); scanf(“%d”, &n); printf(“\nEnter the value of
Read more#include <stdio.h> int main() { char str[100]; char *p; int vCount=0,cCount=0; printf(“Enter any string: “); fgets(str, 100, stdin); //assign
Read more#include <stdio.h> int main() { char str[100]; char *p; printf(“Enter any string: “); fgets(str, 100, stdin); /* Assigning the base
Read moreProgram to Check Prime Number #include <stdio.h> int main() { int n, i, flag = 0; printf(“Enter a positive integer:
Read moreTo convert Celsius to Fahrenheit #include <stdio.h> #include <stdlib.h> int main() { float celsius, fahrenheit; printf(“\nEnter temperature in celsius: “);
Read moreSimple Calculator using switch Statement #include <stdio.h> int main() { char operator; double first, second; printf(“Enter an operator (+, -,
Read moreProgram to Print ASCII Value #include <stdio.h> int main() { char c; printf(“Enter a character: “); scanf(“%c”, &c); // %d
Read more