-
Shathana. S.R. wrote a new item 2 years, 6 months ago
If you have defined a pointer to a variable or any memory object, there is no direct reference to the value of the variable. This is called the indirect reference. But when we declare a variable, it has a direct […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Dynamic data structure is more efficient to memory. The memory access occurs as needed by the program.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
The command rand() is available to use for this purpose. The function returns an integer number beginning from zero(0). The following sample code demonstrates the use of rand().
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
There are 5 modifiers available in the C programming language as follows: Short Long Signed Unsigned long long
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Yes, it works without any error. Some programmers like to use this to organize the code. But the main purpose of curly brackets is to group several lines of codes.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
The algorithm is created first and it contains step by step guidelines on how the solution should be. Also, it contains the steps to consider and the required calculations/operations within the program.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Data is stored in the Stack data structure type using the First In Last Out (FILO) mechanism. Only top of the stack is accessible at a given instance. Storing mechanism is referred as a PUSH and retrieve is r […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
General programs store data into files and retrieve existing data from files. With the sequential access file, such data are saved in a sequential pattern. When retrieving data from such files each data is read […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
The purpose of the Break keyword is to bring the control out of the code block which is executing. It can appear only in looping or switch statements.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
A pointer variable that contains the address of another pointer variable is called pointer on a pointer. This concept de-refers twice to point to the data held by a pointer variable.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
The function definition in C contains four main sections. Return Type: Data type of the return value of the function. Function Name: The name of the function and it is important to have a meaningful name […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
A loop that runs within another loop is referred to as a nested loop. The first loop is called the Outer Loop and the inside loop is called the Inner Loop. The inner loop executes the number of times defined in an outer loop.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
A statement that allows the execution of statements or groups of statements in a repeated way is defined as a loop.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
The file containing the definitions and prototypes of the functions being used in the program are called a header file. It is also known as a library file. Example: The header file contains commands like printf […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Some of the data types in C have special characteristic nature when a developer assigns value beyond the range of the data type. There will be no compiler error and the value changes according to a cyclic order. […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Prototype function is a declaration of a function with the following information to the compiler. Name of the function. The return type of the function. Parameters list of the function.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
‘==’ is the comparison operator which is used to compare the value or expression on the left-hand side with the value or expression on the right-hand side. ‘=’ is the assignment operator which is used to assign […]
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
‘++a” is called prefixed increment and the increment will happen first on a variable. ‘a++’ is called postfix increment and the increment happens after the value of a variable used for the operations.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Uninitialized pointers in the C code are known as Wild Pointers. They point to some arbitrary memory location and can cause bad program behavior or program crash.
-
Shathana. S.R. wrote a new item 2 years, 6 months ago
Both functions are to retrieve absolute value. abs() is for integer values and fabs() is for floating type numbers. Prototype for abs() is under the library file and fabs() is under .
- Load More
