C Program to Print String using Pointer
#include <stdio.h> int main() { char str[100]; char *p; printf(“Enter any string: “); fgets(str, 100, stdin); /* Assigning the base
Read moreC Tutorial
#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 moreProgram to Find the Size of Variables #include<stdio.h> int main() { int intType; float floatType; double doubleType; char charType; //
Read moreProgram to Add Two Integers #include <stdio.h> int main() { int number1, number2, sum; printf(“Enter two integers: “); scanf(“%d %d”,
Read moreProgram to Multiply Two Numbers #include <stdio.h> int main() { double a, b, product; printf(“Enter two numbers: “); scanf(“%lf %lf”,
Read moreProgram to print half pyramid using * #include<stdio.h> int main() { int i, j, rows; printf(“Enter number of rows:
Read moreProgram to Print English Alphabets #include <stdio.h> int main() { char c; for (c = ‘A’; c <= ‘Z’; ++c)
Read more