Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Sizeof Practice | Data
C Basics

book
Sizeof Practice

Determining the Byte Size of the int Data Type

main.c

main.c

copy
#include <stdio.h>

int main()
{
printf("Size of int type: %d bytes\n", sizeof(int));
return 0;
}
12345678
#include <stdio.h> int main() { printf("Size of int type: %d bytes\n", sizeof(int)); return 0; }
Aufgabe

Swipe to start coding

To find out how many bytes the short data type occupies, you can employ the sizeof() function.

Lösung

#include <stdio.h>

int main()
{
printf("Size of short type is %d bytes\n", sizeof(short));

return 0;
}

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 9
single

single

#include <stdio.h>

int main()
{
printf("Size of short type is %d bytes\n", ___(___));

return 0;
}

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

We use cookies to make your experience better!
some-alt