Thursday, March 18, 2021

Wednesday, March 17, 2021

Friday, March 12, 2021

, , , , ,

Friend function in C++ with example program

Well hiding the data is core of  object-oriented programming but friend function in C++ is an exception which break the rule of OOP's.friend function and friend classes in C++ programming helps to give the access member functions from outside the class.or in the other words the protected and private data of a class can be accessed with the help of function in C++.Declare friend function in C++ friend...

Tuesday, March 9, 2021

, , , ,

Substring function in r programming

 Substring() function in R can be used to extract the characters present in the data or to manipulate the given data. You can easily extract the required characters from a string and  Substring() in r can also replace the values in a string.Syntax for substring r :- substr(x,start,stop)substring(x,first,last=1000000L) Here...

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 ispunct in c

 The ispunct() function in c programming checks whether a character is a punctuation mark or not.Syntax for ispunct() in cint ispunct(int argument);it returns a non-zero integer if given characters to ispunct() in c is an punctuation otherwise return 0.Example for Program to check punctuation with...
, , , ,

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...