Bhanu Priya has Published 1251 Articles

Explain the conversions of expressions of stacks in C language

Bhanu Priya

Bhanu Priya

Updated on 21-Jun-2024 21:50:10

3K+ Views

Stack is a linear data structure, where data is inserted and removed only at one end.AlgorithmsGiven below is an algorithm for Push ( ) −Check for stack overflow.if (top = = n-1) printf("stack over flow");Otherwise, insert an element into the stack.top ++ a[top] = itemGiven below is an algorithm for ... Read More

Explain Binding of a variable in C language.

Bhanu Priya

Bhanu Priya

Updated on 20-Jun-2024 21:52:52

2K+ Views

Storage classes specify the scope, lifetime and binding of variables.To fully define a variable, one needs to mention not only its ‘type’ but also its storage class.A variable name identifies some physical location within computer memory, where a collection of bits are allocated for storing values of variable.Storage class tells ... Read More

Explain the pointers for inter-function communication in C language.

Bhanu Priya

Bhanu Priya

Updated on 20-Jun-2024 21:50:26

3K+ Views

We know that functions can be called by value and called by reference.If the actual parameter should not change in called function, pass the parameter-by value.If the value of actual parameter should get changed in called function, then use pass-by reference.If the function has to return more than one value, ... Read More

Explain deleting an element in a queue by using C language

Bhanu Priya

Bhanu Priya

Updated on 20-Jun-2024 21:39:11

7K+ Views

Data structure is collection of data organized in a structured way. It is divided into two types as explained below −Linear data structure − Data is organized in a linear fashion. For example, arrays, structures, stacks, queues, linked lists.Nonlinear data structure − Data is organized in a hierarchical way. For ... Read More

Find 2'c complements for given binary number using C language

Bhanu Priya

Bhanu Priya

Updated on 20-Jun-2024 21:30:15

472 Views

Problem Statement Given a binary number, you have to write a C program to find 2'c complements for given binary number. Consider an example given below −ExampleThe input is as follows:Enter a binary number:10010001The output is as follows:1's complement of 10010001 is 011011102's complement of 10010001 is 01101111AlgorithmRefer an algorithm ... Read More

What are reading and writing characters in C language?

Bhanu Priya

Bhanu Priya

Updated on 20-Jun-2024 21:24:47

6K+ Views

In C programming language the reading and writing characters are as follows −The simplest of the console I/O functions are getche (), which reads a character from the keyboard, and putchar(), which prints a character to the screen.The getche () function works on until a key is pressed and then, ... Read More

What are memory operations in C language?

Bhanu Priya

Bhanu Priya

Updated on 20-Jun-2024 00:33:01

1K+ Views

The library #include contains the basic memory operations. Although not strictly string functions, the functions are prototyped in #include . These memory operations are as follows − void *memchr (void *s, int c, size_t ... Read More

Explain the concept of secondary index in DBMS

Bhanu Priya

Bhanu Priya

Updated on 04-May-2024 20:26:03

4K+ Views

In secondary Index (Unique value) is created for each record in a data file which is a candidate key. Secondary index is a type of dense index and also called a non clustering index.Secondary mapping size will be small as the two levels DB indexing is used.While creating the index, ... Read More

Are HTML comments inside script tags a best practice?

Bhanu Priya

Bhanu Priya

Updated on 09-Nov-2023 14:29:04

2K+ Views

Before trying to understanding whether HTML comments inside script tags is best practice or not, let us discuss about how to write comments in HTML, what are the different ways to comment in HTML? Generally, comments are helpful to understand the statement, it leaves remainders and provide explanations. It also ... Read More

What is a modem? What are different types of modem?

Bhanu Priya

Bhanu Priya

Updated on 07-Nov-2023 12:43:58

42K+ Views

Modem stands for Modulator and Demodulator. It is a device that modulates signals to encode digital information for transmission and demodulates signals to decode the transmitted information.A modem transmits data in bits per second (bps).It is necessary for communication between digital devices and Analog devices.Modem is necessary because it acts ... Read More

Advertisements