Data Structure – Tree Basics

A tree is a non-linear data structure. It means you cannot access an element of a tree in a straightforward manner. In this lesson, you learn about tree basics. This will serve as a foundation for future topics on trees. You can start learning about other topics if familiar with the basics. Learn Binary Tree … Read more

C Structures

An array or a variable can store elements of same data type, but they cannot store data of multiple data types. C programming language provides with a user-defined data type called a Structure. Structure Definition “A structure is a group of different data types which may or may not be the same.”  Declaring a Structure … Read more

C Storage Classes

Variables point to a memory location that has an address and a value stored. Other than this value, a variable also has a storage class. The C storage classes decide the characteristics of a variable during the execution of a program – the characteristics are storage location, initial value stored, scope, the lifetime of the … Read more

C Data Types

Data types are a very important concept in programming languages. You can choose the right kind of variable types for your program. The data types depend on the compiler which creates machine codes suitable for 16-bit or 32-bit processors. Sometimes when the processor has backward compatibility, then a 32-bit processor can run a 16-bit machine … Read more

C Global And Local Variables

C program is a block of statements that are enclosed within { }. Each block has its own scope and it decides which variable to use that falls under its scope. In other words, two variables with the same name can exist in the same program if they are declared in different blocks. The variables … Read more

C Variables And Constants

In a C program, some values do not change and some changes with the execution of the program. A constant never changes throughout the program and the variable changes frequently, hence the name. Types of Constants Constants can be classified into different types such as numeric constants and character constants. The following figure depicts the … Read more

Java Program to Compute Average Mark of Students

Previous Next The program answers how to compute average mark of student. It reads a student’s mark in each subject and then compute the average and displays the results. First, you will store the student records and second, take the average of the marks obtained in different subjects. This is a simple program that demonstrates … Read more

Java Program to Demo Built-in String Functions

Previous Next In java programming there are many built-in string manipulation functions.These functions belong to java.lang packages. The Java program to demo built in function use of each commonly used string function .More details about string class will be discussed in our Java Programming Tutorial. The program is written using NetBean 8.2 and you may … Read more

C Program to Reverse a Number using Recursion

The program uses recursion to reverse an input number. A function is recursively called to extract each digit from the number and place it in reverse order. The final output is a reversed number. We wrote the program using Dev C++ version 4.9.9.2 on a Windows 7 64-bit system. You must be familiar with following … Read more

C++ Program for Factorial without Recursion

Previous Next Factorial of a number is the number you get by multiplying all the numbers up to that number including the number itself. The program for factorial does not use a programming technique called a recursion. a recursion happens when a function calls itself until the problem is solved. This program is a simple … Read more

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.