Posts

Why to choose Python

Why we choose python? User-friendly  Open source Free to use Third party modules  Advantages of python? a. Extensive Libraries b. Extensible c. Embeddable d. Improved Productivity e. IOT Opportunities f. Simple and Easy g. Readable h. Object-Oriented i. Free and Open-Source j. Portable k. Interpreted Disadvantages of Python? a. Speed Limitations b. Weak in Mobile Computing and Browsers c. Design Restrictions d. Underdeveloped Database Access Layers e. Simple Type of programming language? imperative  which allows side effects, object-oriented  which groups code together with the state the code modifies, procedural  which groups code into functions, declarative  which does not state the order in which operations execute, functional  which disallows side effects, logic  which has a particular style of execution model coupled to a particular style of syntax and grammar, and symbolic  programming...

Pointers in C language

Pointers in C language is a variable that stores/points the address of another variable. A Pointer in C is used to allocate memory dynamically i.e. at run time . The pointer variable might be belonging to any of the data types such as int, float, char, double, short etc. Pointer Syntax : data_type *var_name; Example : int *p;  char *p; Example:- int * ptr ; Where * is used to denote that “p” is pointer variable and not a normal variable. int a = 5 ; int * ptr = NULL ; ptr = & a ; This assigns the value of the address of  a  to  ptr . For example, if  a  is stored at memory location of 0x8130 then the value of  ptr  will be 0x8130 after the assignment. To dereference the pointer, an asterisk is used again: Let's see an example program #include <stdio.h> int main () { int var1 ; char var2 [ 10 ]; printf ( "Address of var...