1The sizeof function will help you here.
2sizeof(data type) returns a size_t//Number of bytes whatever the input for sizeof takes34Example:
5//This statement will return 2 or 4 (depending on your system)6returnsizeof(int)
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content