Skip to main content

Posts

pointer in c with example

Hello, hope you are well. So now we will talk about pointers in C programming language . Today we talk about various sub topics of pointers are:-  What is a pointer,  Printing address present in pointer,   Accessing a memory block with help of pointer,  pointer to a pointer in c and  Pointer to an Array. Read full article to better understanding, Lets start... pointer in c Introduction of pointer in c:- To store data, we can create a variable or we can create an array. A variable is of scalar type while an array is of aggregate type. Whenever an array or a variable is created, space is allocated in the memory(RAM). For eg:-         int   a[5];      //array int   x; //variable(scalar) Each and every memory block which is created during the execution of a program is assigned a unique address automatically. The address in the hexadecimal format. 0 - 9 A - 10 B - 11 C - 12 D - 13 E - 14 F - 15 We can excess a

What is "String in C Language" and "String handling function"

What is String in C Language  and String handling function   We are going on new topic of C language of String. If you are not read our previous topic. Then you can visit them and read it, for better understand. So, today we are talking about string , string handling functions and its types and declaring and initializing a string. Char Datatype In C Language Char Datatype In C Language Whenever a variable of char type is created, It is allocated one byte of space in the memory. The Character assigned to a variable of type char, is assigned in single count. syntax: char variable name; To work on character data, We use percentage 'c' (%c) type specifier. Whenever a user enters a data in a variable of type char. The user specifier the data without single count. Sample code:- //program using char data type #include<conio.h> #include<stdio.h> void main() { char data; clrscr(); printf("Enter a Character"); scanf("%c",&data); pr

Searching In C language 'Binary search' and 'Linear Search'

 Searching In C language Binary and Linear Search Hey, hope you are good. So today we are going on new topic of C programming. We talk about Searching in C, types of searching, Linear Search, Binary Search and their workings with Sample code. So read full article for better understanding. Also Read: Array In C Language Search is a technique which allows as to find a given value in a list or a collection at values. If the value is found, the next step is to find out its position. There are two technique which are used for searching. One is linear search and other binary search. Linear search Linear Search is also known as sequential Search because it is search as in sequential way. Linear search works in sequential order. It is difficult and complicated search technique or we can say time consuming technique. This search technique is slower than Binary Search. Also Read:   Control Statements In C - language   Working of Linear Search:- step 1: Create an array. Enter the data in an arr

How We Take Online Classes from anywhere and what we need

        How We can Take An Online Classes from anywhere and  what we need  Hi, here I explain how we take online classes from anywhere and what should we need to take online classes and meetings through digital mode. I tell about some equipment, That used in taking online class. So, read full article below, thanks. 1...What is Online Classes and  digital conferences meetings? Online classes and  digital conferences meetings  is class that take through internet. In which teacher or any body can teach his students and his/her staffs through internet. But there is a difference between online and offline class and meetings.  The online class and meetings is take from the Internet where a teacher or host gives online lectures to many people from her home or anywhere he/she is seating.  And the offline class and meetings is where we have to go to a particular place where the teacher and our boss or manger sits together and teaches together. 2...Precaution for online class While taking online

Array in C Language Btech Bca Notes

 Array in C Language Btech Bca Notes An array is a data form that can hold several values all of the same type. An array is a collection of variable of the same type that are referral to by a common name. Also Read:   Beginner our view on C programming Language  . Array are vital for most programming language. They are collection of variables, which we call elements. Each of the element in an array is stored sequentially in the computeric memory.  This making it easy to  m anipulate them and navigate among them. Since all the elements in an array are of same type, array allows us to represent a group of similar elements as an ordered  sequence  and work on them as a whole (grouping together related data). Array organize data in such a way that it can be easily sorted. To create an array, we use a declaration statement. An array declaration should indicate three things: 1. The type of value to be stored in each element. 2. The name of the array. 3. The number of elements in the array. T