Java Program to print ASCII value of a Character

In this tutorial, you will learn how to find the ASCII value of a character in Java. Before that, you need to have the knowledge of the following in Java Programming. Data-types Type-Casting ASCII stands for American Standard Code for Information Interchange. It is a 7-bit character set that contains 128 (0 to 127) characters. It represents the … Read more

C Program to Count the Number of Digits in an Integer

In this tutorial, you will learn how to count the number of Digits in an integer in C programming. You will learn various approaches possible to Count the Number of Digits. But before that, you need to have knowledge of the following topics in C programming. Explanation:The following programs simply take the user input and … Read more

Command Line Argument in C

The arguments passed from the command line are called command-line arguments. Command-line arguments are passed to the main() method. It allows you to pass the values in a program when they are executed. This is useful when the developer wants to control the program from the outside. Since the values passed to the main() function, … Read more

C – Union

Like Structure in C, Union is also a user-defined data type that is used to store the collection of different data types which are grouped together. Union and structure both are the same, except allocating memory for their members. Structure allocates storage space for each member separately whereas, Union allocates one common storage space for … Read more

C – Structure and Function

Just like any other variables that are passed in a function, structure can also be pas structs to functions. But before that you must go through the following topics in C. Structure In C Functions in C Passing structures to functions While passing a structure we may pass the members of the structure or we … Read more

C Nested Structure

Nested Structure in C is nothing but the structure within a structure. We can declare a structure inside a structure and have its own member function. With the help of nested structure, complex data types are created. The struct declare inside another struct has its own struct variable to access the data members of its … Read more

C – Structures and Pointers

In this tutorial, you will learn how to use pointers in structure and how to access the members of structure using pointer. But before, if you do not know about structure and pointers click the link below. struct in C Pointer in C Use of pointer in Structure in C We use pointers in structure … Read more

Structure in C with Example

In C programming, the structure is user-defined data types that allow us to store the combination of different data types together. All the different data type variables are represented by a single name. As we have studied earlier that Array can hold only a similar type of variable in contiguous memory locations. Similarly, a structure … Read more

C String – strchr() function

strchr() function in C is used to search the stated character in a string. It searches the string for the character and stops when the first time the character is found. And if the string needs to be printed, only the character starting from the searched character to the end is printed. The strchr() function … Read more

C String – strupr() function

strupr() function in C String converts all the characters present in a given string to Uppercase. The strupr() function is defined in the header file string.h. It takes a single argument that is the name of the string and is written as follows. strupr(string_name); C Program for strupr() function Output: Original String: SimplE2code.Com Uppercase Characters: … Read more