Posts

insertion and deletion in array in c program

#include <stdio.h> #include<stdlib.h> void display(int arr[],int n){     for(int i=0;i<n;i++)     {         printf("%d  ",arr[i]);     }     printf("\n"); } int indinsertion(int arr[], int size,int element,int capacity, int index){     if(size>=capacity)     {         return -1;              }     for(int i=size-1; i>=index;i--){         arr[i+1]=arr[i];     }     arr[index]=element;     return 1; } void inddeletion(int arr[],int size, int index1) {     for(int i=index1 ;i<size-1;i++){         arr[i]=arr[i+1];              } } int main() {     // Write C code here     int arr[100]= {7,8,12,27,88};     int size=5, element=45,index=3;     display(arr,size);   ...

C++ MOST IMPORTANT MCQ

C++ MCQ

privacy police

 Privacy Policy Last Updated: [13-08-2024] Welcome to C coding Your privacy is important to us. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website [yourblog.com]. Please read this policy carefully. If you do not agree with the terms of this privacy policy, please do not access the site. 1. Information We Collect Personal Data: We may collect personally identifiable information, such as your name, email address, and any other information you voluntarily provide to us when you subscribe to our newsletter, comment on posts, or contact us. Usage Data: We may collect information about your interactions with our website, such as your IP address, browser type, operating system, pages visited, and the dates/times of your visits. 2. How We Use Your Information We use the information we collect in the following ways: To operate and maintain our website. To improve your experience on our site. To send periodic emails, includin...

SQL IMPORTANT QURIES

Image
 mysql> SHOW DATABASES; +----------+ | Database | +----------+ | mysql    | | test     | | tmp      | +----------+ The mysql database describes user access privileges. The test database often is available as a workspace for users to try things out. The list of databases displayed by the statement may be different on your machine; SHOW DATABASES does not show databases that you have no privileges for if you do not have the SHOW DATABASES privilege. See Section 13.7.7.14, “SHOW DATABASES Statement”. If the test database exists, try to access it: mysql> USE test Database changed USE, like QUIT, does not require a semicolon. (You can terminate such statements with a semicolon if you like; it does no harm.) The USE statement is special in another way, too: it must be given on a single line. You can use the test database (if you have access to it) for the examples that follow, but anything you create in that database can be removed by anyone ...

Fourer series formula

Image
 Fourer series formula

HOW TO MAKE RESUME

 WATCH THE COMPLETE VEDIO.

DABASE MANAGEMENT SYSTEM QUESTIONS

 DABASE MANAGEMENT  SYSTEM SHORT QUESTIONS AND ANSWERS 1. What is database? A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world  and which is designed, built and populated with data for a specific purpose. 2. What is DBMS? It is a collection of programs that enables user to create and maintain a database. In other words it is general-purpose  software that provides the users with the processes of defining, constructing and manipulating the database for various  applications. 3. What is a Database system? The database and DBMS software together is called as Database system. 4. What are the advantages of DBMS? 1. Redundancy is controlled.  2. Unauthorised access is restricted.  3. Providing multiple user interfaces.  4. Enforcing integrity constraints.  5. Providing backup and recovery.  5. What are the disadvantage in File Processing System? 1. Data redundancy and incons...

Chatgpt

Image
 What is Chat GPT And How Can You Use It? Chat GPT is a large language model chatbot developed by Open AI based on GPT-3.5 . It has a remarkable ability to interact in conversational dialogue form and provide responses that can appear surprisingly human . Large language models perform the task of predicting the next word in a series of words . Reinforcement Learning with Human Feedback (RLHF) is an additional layer of training that uses human feedback to help Chat GPT learn the ability to follow directions and generate responses that are satisfactory to humans. Who Built Chat GPT? Chat GPT was created by San Francisco-based artificial intelligence company Open AI . Open AI Inc. is the non-profit parent company of the for-profit Open AI LP .Open AI is famous for its well-known DALL·E, a deep-learning model that generates images from text instructions called prompts .The CEO is Sam Altman, who previously was president of Y Combinator.

C programming Viva questions

1. Which type of language is C ?   Ans- C is a high level language and general-purpose structured programming language. 2. what is  a compiler ? Ans- Compiler is the software that transfer program developed in a high-level language into executable object code. 3. What is an algorithm ? Ans- The approach and method that used to solve the problem is called an algorithm.  4. What is a token and types of c tokens ?  Ans - The smallest individual units are known as C tokens . C has six types of tokens : Keyword, constants , Identifier , Strings , Operators and Special symbols. 5. How many keywords in c ? Ans- There are 32 keywords in the c language. 6. what is an identifier ? Ans- Identifiers are user define name given to variables , Functions and arrays. 7. what are the datatypes present in c ? Ans-   C language supports 2 different type of data types: 1.Primary data types : These are fundamental data types in C namely integer( int ), floating point( float ), cha...

What Is Python Used For

Image
 Python is an interpreted, object-oriented, high-level programming language with dynamic semantics developed by Guido van Rossum . It was originally released in 1991 . Designed to be easy as well as fun, the name "Python" is a nod to the British comedy group Monty Python. Python has a reputation as a beginner-friendly language, replacing Java as the most widely used introductory language because it handles much of the complexity for the user, allowing beginners to focus on fully grasping programming concepts rather than minute details. Python is used for server-side web development, software development, mathematics, and system scripting, and is popular for Rapid Application Development and as a scripting or glue language to tie existing components because of its high-level, built-in data structures, dynamic typing, and dynamic binding. Program maintenance costs are reduced with Python due to the easily learned syntax and emphasis on readability. Additionally, Python's s...

Keywords in Python

Image
Keywords are the reserved words in Python. We cannot use a keyword as a variable name, function name or any other identifier. Here's a list of all keywords in Python Programming Keywords in Python programming language   >>> import keyword  >>> print(keyword.kwlist)  ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']  Description of Keywords in Python with examples True, False True and False are truth values in Python. They are the results of compa...

Exception Handling In Python With Example

Image
  What is an Exception? An exception in Python is an incident that happens while executing a program that causes the regular course of the program's commands to be disrupted. When a Python code comes across a condition it can't handle, it raises an exception. An object in Python that describes an error is called an exception. When a Python code throws an exception, it has two options: handle the exception immediately or stop and quit. Exceptions VS Syntax Errors Syntax Error: As the name suggests this error is caused by the wrong syntax in the code. It leads to the termination of the program.When the interpreter identifies a statement that has an error, syntax errors occur. Exceptions : Exceptions are raised when the program is syntactically correct, but the code resulted in an error. This error does not stop the execution of the program, however, it changes the normal flow of the program. When syntactically valid Python code produces an error, this is the kind of error t...

Python | Calendar Module

Image
 Python | Calendar Module Python defines an inbuilt module calendar that handles operations related to the calendar. The calendar module allows output calendars like the program and provides additional useful functions related to the calendar. Functions and classes defined in the Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions. By default, these calendars have Monday as the first day of the week, and Sunday as the last (the European convention).  Example #1: Display the Calendar of a given month.  # Python program to display calendar of # given month of the year  # import module import calendar yy = 2017 mm = 11  # display the calendar print(calendar.month(yy, mm))  Output:  Example #2: Display calendar of the given year.  # Python code to demonstrate the working of  # calendar() function to print calendar # importing calendar module  # for calendar operations import cale...