-
Ashifa wrote a new item 2 years, 8 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, 8 months ago
%d: It is a format specifier used to print an integer value. %s: It is a format specifier used to print a string. %c: It is a format specifier used to display a character value. %f: It is a format specifier […]
-
Ashifa wrote a new item 2 years, 8 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, 8 months ago
Following are the uses of a static variable: A variable which is declared as static is known as a static variable. The static variable retains its value between multiple function calls. Static variables are […]
-
Ashifa wrote a new item 2 years, 8 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 once […]
-
Ashifa wrote a new item 2 years, 8 months ago
#include #include void main() { int n,i,m=0,flag=0; //declaration of variables. clrscr(); //It clears the screen. printf(“Enter the number to check prime:”); scanf(“%d”,&n); m=n/2; for(i=2;i
-
Ashifa wrote a new item 2 years, 8 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 […]
-
Ashifa wrote a new item 2 years, 8 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, 8 months ago
In case of dynamic memory allocation, memory is allocated at runtime and memory can be increased while executing the program. It is used in the linked list. The malloc() or calloc() function is required to […]
-
Ashifa wrote a new item 2 years, 8 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 allocation: […]
-
Ashifa wrote a new item 2 years, 8 months ago
When a function calls itself, and this process is known as recursion. The function that calls itself is known as a recursive function. Recursive function comes in two phases: Winding phase Unwinding […]
-
Ashifa wrote a new item 2 years, 8 months ago
C is called a mid-level programming language because it binds the low level and high -level programming language. We can use C language as a System programming to develop the operating system as well as an […]
-
Ashifa wrote a new item 2 years, 8 months ago
C is known as a mother language because most of the compilers and JVMs are written in C language. Most of the languages which are developed after C language has borrowed heavily from it like C++, Python, Rust, […]
-
Ashifa wrote a new item 2 years, 8 months ago
C is a mid-level and procedural programming language. The Procedural programming language is also known as the structured programming language is a technique in which large programs are broken down into smaller […]
-
Ashifa wrote a new item 2 years, 8 months ago
In pass by refrence ,the callee recieves the address and makes a copy of the address of an argument of an argument into the formal parameter.callee function uses the address to acess the actual argument to do some […]
-
Ashifa wrote a new item 2 years, 8 months ago
Enumeration,also known as enum in c, is a user defined data type.it consists of constant integrals or integers that have names assigned to them by the user. Because the integer values are named with enum in c,the […]
-
Ashifa wrote a new item 2 years, 8 months ago
Macro on a highLevel copy paste,it’s definitions to places wherever it is called.due to which it saves a lot of time,as no time is spent while passing the control to a new function and the control iss always […]
-
Ashifa wrote a new item 2 years, 8 months ago
A preprocessor Is a software program that processes a source file before sending it to be complied .inclusion of header files,macro expansion ,conditional compilation,and line control are all possible with the preprocessor.
-
Ashifa wrote a new item 2 years, 8 months ago
A pointer is a variable that stores or points to another variables address.The value of a variable is stored in a normal variable, whereas the address of a variable is stored in a pointer variable.In C ,a pointer […]
-
Ashifa wrote a new item 2 years, 8 months ago
C has characteristics of both assembly level I.e. low level and higher level languages so as a result, C is commonly called a middle level language. UsingC, a user can write an operating system as well as cr […]
