Bhanu Priya has Published 1612 Articles

Explain the END OF FILE (EOF) with a C Program

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 21:13:13

26K+ Views

The End of the File (EOF) indicates the end of input.After we enter the text, if we press CTRL+Z, the text terminates i.e. it indicates the file reached end nothing to read.AlgorithmRefer to the algorithm given below for EOF.Step 1: Open file in write mode. Step 2: Until character reaches ... Read More

Differentiate between the long-term, short-term, and medium-term schedulers.

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 21:03:08

24K+ Views

Before working on the difference between all three schedulers, let us recall the concept of process scheduler.Process scheduler is a part of the Operating system which schedules the process. If the process is in ready, waiting and running state it schedules it correctly and is also responsible for the allocation ... Read More

What is the Architecture of Internet of Things (IoT)?

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 14:02:58

30K+ Views

Internet of Things (IoT) is a system of interrelated, internet-connected objects which are able to collect and transfer data over a wireless network without human intervention.For example, smart fitness bands or watches, driverless cars or drones, smart homes that can be unlocked through smartphones and smart cars, etc.Architecture of IoTThere ... Read More

What are the components of ER diagrams in DBMS?

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 13:15:44

32K+ Views

ER model stands for the Entity Relationship Model in the database management system (DBMS). It is the first step of designing to give the flow for a concept. It is the DFD (Data Flow Diagram) requirement of a company.It is the basic building block for relational models. Not that much ... Read More

What are pointers to structures in C language?

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 02:44:23

26K+ Views

Pointer to structure holds the add of the entire structure.It is used to create complex data structures such as linked lists, trees, graphs, and so on.The members of the structure can be accessed using a special operator called as an arrow operator ( -> ).DeclarationFollowing is the declaration for pointers ... Read More

C program to find the unique elements in an array.

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 02:28:29

27K+ Views

ProblemFind the non-repeating element in an array by using the two loops. One is for the current element and the other is to check, if an element is already present in an array or not.SolutionConsider an example given below −15, 15, 16, 15, 13, 15Here, the non-repeated elements in an ... Read More

C program to print area of triangle, square, circle, rectangle and polygon using switch case.

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 02:27:17

32K+ Views

ProblemWrite a program to calculate the area of triangle, square, circle, rectangle and polygon by using the switch case.SolutionBased on case number, the area of triangle, square, circle, rectangle and polygon is calculated.The logic used to find area of triangle is as follows −Enter sides of a triangle a, b, ... Read More

What are different types of DBMS languages?

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 02:15:20

32K+ Views

Once data is stored or filled it requires manipulation like insertion, deletion, updating, and modification of data. For these operations a set of languages are provided by the database management system (DBMS). So, the database languages are used to read, update and store data in the database.The different types of ... Read More

What is an instruction set in a computer?

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 01:56:54

30K+ Views

An instruction is a set of codes that the computer processor can understand. The code is usually in 1s and 0s, or machine language. It contains instructions or tasks that control the movement of bits and bytes within the processor.Example of some instruction sets −ADD − Add two numbers together.JUMP ... Read More

How to convert NFA with epsilon to DFA in TOC?

Bhanu Priya

Bhanu Priya

Updated on 13-Sep-2023 16:13:10

35K+ Views

In this method, we first convert Non-deterministic finite automata (NFA) with ε to NFA without ε.Then, NFA without ε- can be converted to its equivalent Deterministic Finite Automata (DFA).Method for conversionThe method for converting the NFA with ε to DFA is explained below −Step 1 − Consider M={Q, Σ, δ, ... Read More

Advertisements