Bhanu Priya has Published 1449 Articles

Explain string library functions with suitable examples in C

Bhanu Priya

Bhanu Priya

Updated on 14-Sep-2023 21:29:01

39K+ Views

String Library functionsThe predefined functions which are designed to handle strings are available in the library string.h. They are −strlen ()strcmp ()strcpy ()strncmp ()strncpy ()strrev ()strcat ()strstr ()strncat ()The strlen () functionIt returns the number of characters in a string.Syntaxint strlen (string name)Example#include main (){    char a[30] = ... Read More

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

Bhanu Priya

Bhanu Priya

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

31K+ 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

30K+ 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 are the components of ER diagrams in DBMS?

Bhanu Priya

Bhanu Priya

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

48K+ 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

C program to find the unique elements in an array.

Bhanu Priya

Bhanu Priya

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

34K+ 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

What are different types of DBMS languages?

Bhanu Priya

Bhanu Priya

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

39K+ 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

42K+ 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

C program to find the second largest and smallest numbers in an array

Bhanu Priya

Bhanu Priya

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

31K+ Views

Enter the array elements and then, arrange the numbers in descending order by using the swapping technique. Later on, with the help of an index location, try to print the second largest and the second smallest element in an array.An array is used to hold the group of common elements ... Read More

Explain about nested queries in DBMS

Bhanu Priya

Bhanu Priya

Updated on 13-Sep-2023 13:12:39

39K+ Views

A nested query is a query that has another query embedded within it. The embedded query is called a subquery.A subquery typically appears within the WHERE clause of a query. It can sometimes appear in the FROM clause or HAVING clause.ExampleLet’s learn about nested queries with the help of an ... Read More

What is tier-3 architecture in DBMS?

Bhanu Priya

Bhanu Priya

Updated on 13-Sep-2023 13:09:59

35K+ Views

The overall design of the Database Management System (DBMS) depends on its architecture. A large amount of data on web servers, Personal Computers (PC) and other elements are linked with networks with the help of basic client or server architecture.PCs and workstations are part of Client architecture that are connected ... Read More

Advertisements