Special Operators

Last Updated: Jan 2026


The Special Operators are used to manipulate memory and access functions.

sizeof Operator

The sizeof operator returns the size of a data type in bytes.

int main() {
    int num = 10;
    printf("Size of int: %d bytes\n", sizeof(num)); // Output: Size of int: 4 bytes
    return 0;
}

Note : It is a function, not an operator.


& Operator

The & operator returns the address of a variable.

int main() {
    int num = 10;
    printf("Address of num: %p\n", &num); // Output: Address of num in hexadecimal format
    printf("Address of num: %d\n", &num); // Output: Address of num in decimal format
    return 0;
}

Note : It is a function, not an operator.


* Operator

Pointer operators are used to access memory and manipulate data.

int main() {
    int num = 10;
    int* ptr = #
    printf("Value of num: %d\n", *ptr); // Output: Value of num: 10
    return 0;
}

Most use in function call by reference or direct hold the memory address.



Liked This Tutorial

Scan QR Code To Leave A Review Or

Click Here To Leave A Review
Scan QR