Search
 
SCRIPT & CODE EXAMPLE
 

C

pointer operator

// C program to demonstrate declaration of
// pointer variables.
#include <stdio.h>
int main()
{
    int x = 10;
 
    // 1) Since there is * in declaration, ptr
    // becomes a pointer variable (a variable
    // that stores address of another variable)
    // 2) Since there is int before *, ptr is
    // pointer to an integer type variable
    int *ptr;
 
    // & operator before x is used to get address
    // of x. The address of x is assigned to ptr.
    ptr = &x;
 
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: how to make C program blink on screen 
C :: ejemplo c holamundo 
C :: execute asm in c 
C :: how to stop aws alb temporarily 
C :: error: ‘_Atomic’ does not name a type 
C :: code to reverse the words in a sentnce 
C :: deepak 
C :: synopsis of fork() 
C :: My name is c 
C :: change data type inline in c 
C :: suma de digitos 
C :: how to delete data and add from file in c language 
C :: fina students name by using html backend database 
C :: shortest job first 
C :: copy a number of characters to another string in c without standard library 
C :: [4,5,6] 
C :: why return 0 is written at the code end? 
C :: or gmode inline image 
C :: print binary in c 
C :: Dividing canvas in live2d 
C :: vs code turn off formatter 
C :: write to console c 
Dart :: how to diable flutter for web 
Dart :: flutter text right overflowed 
Dart :: How to center AlertDialog FlatButton in Flutter 
Dart :: height appbar flutter 
Dart :: flutter list splice 
Dart :: toast flutter 
Dart :: flutter flotingactionbutton 
Dart :: dart list map index 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =