Sample Program for Declaration Reading

This a sample program to demonstrate the use of various declarations that are used. There are indeed many more that are used based on given situation, but these are references on how few of them are used. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~An Article by: Yashwanth Naidu Tikkisetty~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Read More Sample Program for Declaration Reading

Reading Declarations in C

When reading code, follow these points: 1) * – pointer to 2) [] – array of 3) () – function returning 4) Start at the variable name 5) Read right first without crossing parenthesis 6) Then go left without crossing 7) Start inwards and move outwards. Reading is right to left. Examples are provided for different variable types.

Read More Reading Declarations in C

FUN WITH POINTERS

Pointers!A confusing yet curious topic. What is a POINTER?Well, it’s a variable that stores the address of another variable. We often get confused by the dual operation performed by the pointer.‘&‘ Operator is an address operator that gives the address of a particular variable.‘*‘ Operator is an indirection operator, that refers to the value pointed […]

Read More FUN WITH POINTERS