Page not found
Search results
String length in C
C program to find length of a string, for example, the length of the string "C programming" is 13 (space character is counted). The null character isn't ... it. To find it, we can use strlen function of "string.h." C program to find length of a string without using strlen function , ...
devyog - 22/10/2020 - 21:08
C program to find the largest number in an array
C program to find the largest number in an array using a function and ... = window.adsbygoogle || []).push({}); C program to find largest number in an array #include <stdio.h> ... { int array [ 100 ] , size , c , location = 0 ; printf ( "Enter the number of ...
devyog - 11/10/2020 - 11:19
Prime number program in C
Prime number program in C language to check whether a number is prime or composite , to print ... || []).push({}); Prime number in C language #include <stdio.h> int main ( ) { int n , i = 3 , count , c ; printf ( "Enter the number of prime numbers to print \n ...
devyog - 01/10/2020 - 23:20
C program to change case of a string
... || []).push({}); Function strlwr in C #include <stdio.h> #include <string.h> int main ( ... return 0 ; } Function strupr in C #include <stdio.h> #include <string.h> int main ( ...
devyog - 01/12/2019 - 08:56
getch in C
Function getch in C program prompts a user to press a character. It doesn't show up on the ... header file. The function is not a part of standard C library. C programming code for getch #include <stdio.h> #include ...
devyog - 14/12/2019 - 21:35
C program to swap two numbers
C program to swap two numbers with and without using third variable , using ... 4 and b = 5, after swapping them, a = 5, b = 4. In the first C program, we use a temporary variable to swap two numbers. ... || []).push({}); Swapping of two numbers in C #include <stdio.h> int main ( ) { int ...
devyog - 19/11/2019 - 09:06
C program to reverse a string
C program to reverse a string that a user inputs. If the string is "hello" then, the output is "olleh." C program to reverse a string using strrev , without using strrev , ... || []).push({}); Reverse a string in C using strrev #include <stdio.h> #include <string.h> ...
devyog - 14/10/2020 - 19:35
Sum of n numbers in C
Sum of n numbers in C: This program adds n numbers that a user inputs. The user enters a number ... = window.adsbygoogle || []).push({}); C program to find sum of n numbers using a for loop #include <stdio.h> ... ( ) { int n , sum = 0 , c , value ; printf ( "How many numbers you want to add? ...
devyog - 10/12/2019 - 23:42
C program to print a string
C program to print a string using various functions such as printf, puts. ... char z [ 100 ] = "I am learning C programming language." ; printf ( "%s" , z ) ; ... return 0 ; } Output: I am learning C programming language. (adsbygoogle = ...
devyog - 14/10/2020 - 21:18
String compare in C
How to compare strings in C? You can use do it using strcmp function , without strcmp function and ... = window.adsbygoogle || []).push({}); C compare strings #include <stdio.h> #include <string.h> ... program: Download Compare Strings program. C string comparison program We can create a function to compare two ...
devyog - 05/12/2019 - 08:50