toupper() function in c programming is used to convert lowercase alphabets to uppercase letters.When a programmer passed a lowercase alphabet to toupper() function then it converts it to uppercase.Or when a uppercase alphabet is passed then function returns same value.Syntax for toupper() function in c :- int toupper(int ch);Example Program for toupper() in c :- Let's go with...
Showing posts with label c program example. Show all posts
Showing posts with label c program example. Show all posts
Wednesday, May 26, 2021
Wednesday, April 14, 2021
line function in computer graphics
line function in c programming :-Well line function in c computer graphics is used as it name says to draw a line from a point(x1,y1) to point(x2,y2) where (x2,y2) are end points to draw a line.Here you can also check the c program to draw a line in computer graphics.
(adsbygoogle = window.adsbygoogle || []).push({});
C example program #include <graphics.h>#include <conio.h>main(){ ...
Saturday, March 6, 2021
Example program for isxdigit() function in c

The isxdigit() function in c programming checks whether a character is a hexadecimal digit character (0-9, a-f, A-F) or not.Syntax for isxdigit in c :-int isxdigit( int arg ); isxdigit() ParametersThe isxdigit() in c takes a single character as it's parameter. C isxdigit() Return Value if...
Example program for isspace() in c

The isspace() function in c programming used to check whether a character is a white-space character or not.It return the non-zero integer if given argument to the isspace() in c is a white-space character, otherwise return 0.Syntax For isspace() function in c: - int isspace(int argument);First...
Example program for isprint() in c

The isprint() function in c programming is used to check the given character is a printable character or not.Printable characters in c programming are just the opposite of control characters and these type of characters checked using iscntrl() function in c.Syntax for isprint() in cint isprint(...
Monday, March 1, 2021
Example program for isgraph in c
The isgraph() function in c use to checks that given character is a graphic character or not.What is graphic character:- Characters which have graphical representation are call as graphic characters. isgraph in c return the non zero integer if passed argument is an graphic character otherwise returns 0.Syntax for isgraph in c int isgraph(int argument); Example program to...
Example program for iscntrl() function in c
iscntrl() function in c Used to check if the given character is a control character or not.Characters that are not print on the screen are known as control characters for exam newline. If a character passed by iscntrl() function is a control character then it return non zero integer value otherwise return 0. iscntrl() C is define in ctype.h header file.this function ...
Example program for islower() function in c
The islower() function in c checks that the given character is lowercase alphabet (a-z) or not.Syntax :- int islower( int arg ); islower() function takes a single argument in the form of integer and return the value of integer type.Return Value islower() function in c : - Non-zero number (x > 0) it means given Argument is a lowercase alphabet.Zero (0) then given
Argument...
Thursday, February 25, 2021
Example Program for isdigit() in c - Function in c

isdigit() function in C programming use to checks whether a character is numeric character (0-9) or not. Prototype of isdigit() Function in Cint isdigit( int arg );isdigit() function in c programming take a single argument which is an integer and return type int.Given character is converted...
Example program for isalpha in c - Function In C

The isalpha() function in programming is used to check whether a character is an alphabet or not.If a character is prove that it is an is an alphabet with the help of isalpha() function in c then it return non zero integer otherwise it gives zero. This function is define in the <ctype.h>...
Friday, October 30, 2020
Program for perror function in c - library function

perror is a c library function in c this function is used to print a descriptive error message in c.Program for perror function Syntax:-
void perror(const char *str)
str in c contain a custom message that is printed before the error message itself. perror function in c doesn't return any...
Tuesday, October 27, 2020
Example program for tmpfile() function in c programming

tmpfile() function in c programming is used to created the temporary file in program and this temporary file will be deleted after termination of c program. wb+ mode is used to opens file in binary update Example program for tmpfile() function in c programming Syntax :-
FILE...
Monday, October 26, 2020
Example Program for setbuf Function in c

setbuf() function in c programming is used to define how stream should be buffered and this function should be call when a file associated with the stream and a already open file but any input or output shouldn't take place.Example Program for setbuf Function in c Parameter for setbuf() function...
Sunday, October 25, 2020
Example program for ftell function in c

ftell() function in c is used to get the total size of file after move the file pointer to the end of the file and it return the current position in long type.File can have more than 32767 bytes of dataSyntax : - long int ftell(FILE *stream)Let's Check out the Program for ftell() function in c...
Saturday, October 24, 2020
Example program for fsetpos() function in C programming

In c handling, fsetpos() function will be used to set the position of input file with the help of fsetpos() access that point.If you use to fix the file indicator position at any time in the given file then we need to use the fsetpos() function. Return Value :- fsetpos() function return zero...
Example Program for FSEEK() function in c programming

fseek() function in c programming is used to write data into desired file with the help of pointer which help to find the location into the given file.Example Program for FSEEK() function in c programming Syntax :-
int fseek(FILE *stream, long int offset, int whence) There are three constants...
Friday, October 23, 2020
Example program for fprintf() function in c

The fprintf() function in c is used to write the formatted data into the file.This didn't print the data on the console. All
the arguments of function fprintf() is same as the printf() but
fprintf() has an extra arguments which is pointer that is used to find
the location where the formatted...
Wednesday, October 21, 2020
List of function program in c programming language

Well as all of you can see in previous tutorial of function in c programming we try to cover all in-build function in c not just only c but also other programming language like python, javascript, SQL, and other languages.List of function program in c programming language In this tutorial...
Tuesday, October 20, 2020
How to use the fflush in c programming with example

fflush() function in c programming is use to flushes the contents of output to given file.Understand the fflush function:-To discuses the common issue due to the output buffering after the execute the c program.
#include <stdio.h>
int main() {
fprintf(stdout, "This is to stdout....
Monday, October 19, 2020
Example program for fscanf function in c

fscanf() function in c programming is used to read input from a file. Well this function works same as the scanf() function in c programming but instead of read the given input in c program fscanf() function read the data from file.Most of the arguments of fscanf() function in c are same...
Subscribe to:
Posts (Atom)