geeksforgeeks
search icon
  • Courses
    Sale
  • Tutorials
  • Interview Prep
    Videos
    September 09, 2025 |9.2K Views

    sizeof Operator in C

    C Language, C Language
     Save  Share  6 Likes
    Description
    Discussion

    The sizeof operator in C is a compile-time unary operator used to calculate the size of its operand in bytes. It works with data types, variables, and expressions, returning a result of type size_t. Commonly used for memory management, its output may vary based on the machine architecture. The operator ensures optimized memory allocation in C programs. 

    For more details, check out the full article here.

    Recommendations
    Video Thumbnail
    03:50
    Video Thumbnail
    2.8K Views | 21/01/2025...
    Write a C Program to Reverse a Number
    Video Thumbnail
    06:54
    Video Thumbnail
    7.2K Views | 13/08/2024...
    Count the Digits in a Number | C Program
    Video Thumbnail
    08:22
    Video Thumbnail
    7.0K Views | 18/01/2023...
    C Program to count number of lines in a file
    Video Thumbnail
    12:30
    Video Thumbnail
    3.1K Views | 24/11/2022...
    C Program to Segregate Even and Odd numbers
    Video Thumbnail
    10:26
    Video Thumbnail
    11.4K Views | 22/11/2022...
    C Program to Calculate Grade of Student
    Video Thumbnail
    09:59
    Video Thumbnail
    2.7K Views | 18/11/2022...
    C program to calculate the angle between hour and minute hand
    Video Thumbnail
    05:50
    Video Thumbnail
    2.5K Views | 07/11/2022...
    C program to print Kite pattern
    Video Thumbnail
    07:38
    Video Thumbnail
    610 Views | 03/11/2022...
    C Program to find the Area and Perimeter of a Semicircle
    Video Thumbnail
    09:12
    Video Thumbnail
    2.0K Views | 28/10/2022...
    C program to find square root of a negative number
    Video Thumbnail
    08:03
    Video Thumbnail
    1.4K Views | 27/10/2022...
    C Program to turn an image by 90 degree
    GeeksforGeeks
    location
    Corporate & Communications Address:
    A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
    location
    Registered Address:
    K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
    GFG App on Play StoreGFG App on App Store
    • Company
    • About Us
    • Legal
    • Privacy Policy
    • Contact Us
    • Advertise with us
    • GFG Corporate Solution
    • Campus Training Program
    • Explore
    • POTD
    • Job-A-Thon
    • Blogs
    • Nation Skill Up
    • Tutorials
    • Programming Languages
    • DSA
    • Web Technology
    • AI, ML & Data Science
    • DevOps
    • CS Core Subjects
    • Interview Preparation
    • Software and Tools
    • Courses
    • ML and Data Science
    • DSA and Placements
    • Web Development
    • Programming Languages
    • DevOps & Cloud
    • GATE
    • Trending Technologies
    • Videos
    • DSA
    • Python
    • Java
    • C++
    • Web Development
    • Data Science
    • CS Subjects
    • Preparation Corner
    • Interview Corner
    • Aptitude
    • Puzzles
    • GfG 160
    • System Design
    @GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved