Karthikeya Boyini has Published 2193 Articles

Return type of getchar(), fgetc() and getc() in C

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:30:45

2K+ Views

Details about getchar(), fgetc() and getc() functions in C programming are given as follows −The getchar() functionThe getchar() function obtains a character from stdin. It returns the character that was read in the form of an integer or EOF if an error occurs.A program that demonstrates this is as follows ... Read More

Java Program to return a Date set to the last possible millisecond of the day before midnight

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:23:20

153 Views

Let us first set the calendar object.Calendar calendar = Calendar.getInstance();Use the getMaximum() method in Java to returns the maximum value for the given calendar field. We will use it to set the minute, hours second and milliseconds.For hour and minute.calendar.set(Calendar.HOUR_OF_DAY, calendar.getMaximum(Calendar.HOUR_OF_DAY)); calendar.set(Calendar.MINUTE, calendar.getMaximum(Calendar.MINUTE));For second and milliseconds.// second calendar.set(Calendar.SECOND, calendar.getMaximum(Calendar.SECOND)); // ... Read More

Convert from float to String in Java

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:21:49

9K+ Views

To convert float to string, use the toString() method. It represents a value in a string.Let’s say the following is our float.float f = 0.9F;Converting the float value to string.String s = Float.toString(f);Let us see the complete example to convert float to String in Java with output.Example Live Demopublic class Demo ... Read More

Java Program to get full day name

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:19:45

5K+ Views

To display the full day name, use the SimpleDateFormat(“EEEE”) as shown below −// displaying full-day name f = new SimpleDateFormat("EEEE"); String str = f.format(new Date()); System.out.println("Full Day Name = "+str);Since, we have used the Format and SimpleDateFormat class above, therefore import the following packages. With that, we have also used ... Read More

Bounce Out Down Animation Effect with CSS

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:19:10

119 Views

To implement Bounce Out Down Animation Effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;     ... Read More

mbrlen() function in C/C++

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:19:06

191 Views

The function mbrlen() is used to get the length of multibyte character. It returns the size of multibyte character pointed by the pointer.Here is the syntax of mbrlen() in C language, size_t mbrlen(const char* pointer, size_t size, mbstate_t* state);Here, pointer − Pointer to the first byte of multibyte character.size − ... Read More

isgraph() C library function

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:17:52

147 Views

The function isgraph() is used to check that the passed character has a graphical representation or not. It is declared in “ctype.h” header file.Here is the syntax of isgraph() in C language, int isgraph(int char);Here is an example of isgraph() in C language, Example Live Demo#include #include int main() {   ... Read More

Display the month number with SimpleDateFormat(“M”) in Java

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:16:50

3K+ Views

To display the month number, use the SimpleDateFormat(“M”)// displaying month number Format f = new SimpleDateFormat("M"); String strMonth = f.format(new Date()); System.out.println("Month Number = "+strMonth);Since, we have used the Format and SimpleDateFormat class above, therefore import the following packages. With that, we have also used the Date.import java.text.Format; import java.text.SimpleDateFormat; ... Read More

isalnum() function in C Language

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:11:19

9K+ Views

The function isalnum() is used to check that the character is alphanumeric or not. It returns non-zero value, if the character is alphanumeric means letter or number otherwise, returns zero. It is declared in “ctype.h” header file.Here is the syntax of isalnum() in C language, int isalnum(int character);Here, character − ... Read More

strtod() function in C/C++

karthikeya Boyini

karthikeya Boyini

Updated on 26-Jun-2020 08:10:10

411 Views

The function strtod() is used to convert the string to a floating point number. The string is converted into double type number. It returns the converted number, if successful otherwise, zero. This is declared in “stdlib.h” header file.Here is the syntax of strtod() in C language, double strtod(const char *string, ... Read More

Advertisements