Showing posts with label C Coaching class in Satellite-Ahmedabad. Show all posts
Showing posts with label C Coaching class in Satellite-Ahmedabad. Show all posts

Monday, March 16, 2020

What is use of structure in C- TCCI


Structures - is used to store different type of data at same location like books, student, etc.



The most efficiently data structures are used in c is stack, queue, tree, linked list, doubly linked list, hash table etc.

Syntax:

struct student{

char name[20];

int rollnumber;

float percentage;
}

in a structure and create various variables related to that structure for each individual student. Suppose you have 10 students in your batch. Then you can create an array of 10 variables of type student as:

struct student s[10];

nd indiviually use them as:

s[0].rollnumber=2005;

The compiler itself uses stack when it compiles any code. As you can notice stack frame and stack pointer.

Queue is used for many operations like in railway ticket booking counter, or any queue related operations.

Tree is used for file hirearchy in your system or any where the hirearchy related situation is there, tree is the option for you.

To learn more in detail about structure at TCCI

Call @ 9825618292

Visit us @ http://tccicomputercoaching.com/

Sunday, February 9, 2020

What is a Null Pointer in C? tccicomputercoaching.com

A pointer is a variable which holds the address of another variable of the same data type as a pointer variable.

A null pointer is a special pointer value that is known not to point anywhere. In very simple word NULL Pointer is a pointer which is pointing to nothing. NULL pointer points the base address of segment.



Pointer which is initialized with NULL value is considered as NULL pointer.

TCCI is the Best Computer Coaching in Bopal and Satellite in Ahmedabad. We teach All Programming Languages to the school students, BCA, MCA, PGDCA, Degree-Diploma-Engineering students.

Student can learn any course through Offline and Online at TCCI as per their schedual.

Call us @ 9825618292

Visit us @ www.tccicomputercoaching.com