Posts

Showing posts with the label #cprogramming

Scaler Academy Review with Proof

Image
 Pankaj Kumar's career underwent a remarkable transformation thanks to his enrollment in  Scaler Academy . Before joining the program, Pankaj found himself navigating through a series of odd jobs that failed to offer him the stability and fulfilment he sought. His journey took a turn when he decided to take proactive steps to change his circumstances.                                          Recognizing the need to enhance his skills and overcome career obstacles, Pankaj embarked on a journey of self-discovery and growth. Through introspection, he identified his areas of weakness and sought guidance on how to bridge the gaps in his skill set. It was during this time that he learned about Scaler Academy and its comprehensive DSA course. Enrolling in Scaler Academy marked a pivotal moment in Pankaj's career journey. The program provided him with access to a supportive community, active study groups, and personalized mentorship, all of which played crucial roles in his professiona

Introduction to Pointers in C

What are Pointers in C?  A pointer is a variable that holds the address of another variable. A pointer is a derived data type in C. All the computers have addressable memory locations. The value of these variables is stored in these memories only. We can access these values of the variable in 2 ways: (i) By using the name of the variable. (ii) By using the address of a variable. The use of pointers are made in the second method Values stored in pointers are addresses, where data is stored in memory. Example:           int i = 8;           i → name of the variable           8 → value at address           65599 → address in the memory. How to Use Pointers in C? If we declare a variable i of type int, it will store a value.  int i = 0 The value of i is 0 now However, each variable, apart from value, also has its own address (or the address of the location where the value is saved in memory). The address can be retrieved by putting an ampersand (&) before the name of the variable. &