-
Ashifa wrote a new item 2 years, 4 months ago
An Array is a group of similar types of elements. It has a contiguous memory location. It makes the code optimized, easy to traverse and easy to sort. The size and type of arrays cannot be changed after its declaration.
-
Ashifa wrote a new item 2 years, 4 months ago
In case of a pointer to pointer concept, one pointer refers to the address of another pointer. The pointer to pointer is a chain of pointers. Generally, the pointer contains the address of a variable. The pointer […]
-
Ashifa wrote a new item 2 years, 4 months ago
Yes, by holding the base address of array into a pointer, we can access the array using a pointer.
-
Ashifa wrote a new item 2 years, 4 months ago
The typecasting is a process of converting one data type into another is known as typecasting. If we want to store the floating type value to an int type, then we will convert the data type into another data type explicitly.
-
Ashifa wrote a new item 2 years, 4 months ago
A virtual address is composed of the selector and offset. A near pointer doesn’t have explicit selector whereas far, and huge pointers have explicit selector. When you perform pointer arithmetic on the far pointe […]
-
Ashifa wrote a new item 2 years, 4 months ago
The Token is an identifier. It can be constant, keyword, string literal, etc. A token is the smallest individual unit in a program. C has the following tokens: Identifiers: Identifiers refer to the name of the […]
-
Ashifa wrote a new item 2 years, 4 months ago
The sprintf() stands for “string print.” The sprintf() function does not print the output on the console screen. It transfers the data to the buffer. It returns the total number of characters present in the string.
-
Ashifa wrote a new item 2 years, 4 months ago
In C, every local variable of a function is known as an automatic (auto) variable. Variables which are declared inside the function block are known as a local variable. The local variables are also known as an […]
-
Ashifa wrote a new item 2 years, 4 months ago
The union is a user-defined data type that allows storing multiple types of data in a single unit. However, it doesn’t occupy the sum of the memory of all members. It holds the memory of the largest member […]
-
Ashifa wrote a new item 2 years, 4 months ago
The structure is a user-defined data type that allows storing multiple types of data in a single unit. It occupies the sum of the memory of all members. The structure members can be accessed only through […]
-
Ashifa wrote a new item 2 years, 4 months ago
Description The malloc() function allocates a single block of requested memory. The calloc() function allocates multiple blocks of requested memory. Initialization It initializes the content of the memory to […]
-
Ashifa wrote a new item 2 years, 4 months ago
In case of static memory allocation, memory is allocated at compile time, and memory can’t be increased while executing the program. It is used in the array. The lifetime of a variable in static memory is the […]
-
Ashifa wrote a new item 2 years, 4 months ago
In case of a pointer to pointer concept, one pointer refers to the address of another pointer. The pointer to pointer is a chain of pointers. Generally, the pointer contains the address of a variable. The pointer […]
-
Ashifa wrote a new item 2 years, 4 months ago
If a pointer is pointing any memory location, but meanwhile another pointer deletes the memory occupied by the first pointer while the first pointer still points to that memory location, the first pointer will […]
-
Ashifa wrote a new item 2 years, 4 months ago
A pointer which can access all the 16 segments (whole residence memory) of RAM is known as far pointer. A far pointer is a 32-bit pointer that obtains information outside the memory in a given section.
-
Ashifa wrote a new item 2 years, 4 months ago
A pointer that doesn’t refer to any address of value but NULL is known as a NULL pointer. When we assign a ‘0’ value to a pointer of any type, then it becomes a Null pointer.
-
Ashifa wrote a new item 2 years, 4 months ago
Accessing array elements: Pointers are used in traversing through an array of integers and strings. The string is an array of characters which is terminated by a null character ”. Dynamic memory […]
-
Ashifa wrote a new item 2 years, 4 months ago
A pointer is a variable that refers to the address of a value. It makes the code optimized and makes the performance fast. Whenever a variable is declared inside a program, then the system allocates some memory to […]
-
Ashifa wrote a new item 2 years, 4 months ago
Following are the differences between a local variable and global variable: Basis for comparison Local variable Global variable Declaration A variable which is declared inside function or block is known as a […]
-
Ashifa wrote a new item 2 years, 4 months ago
The main features of C language are given below: Simple: C is a simple language because it follows the structured approach, i.e., a program is broken into parts Portable: C is highly portable means that o […]
- Load More
