Which will be the output? #include<stdio.h> int main () { char i=65; printf (“%d”, sizeof(i)); return 0; } 4 8 2 1

Question

Which will be the output? #include<stdio.h> int main () { char i=65; printf (“%d”, sizeof(i)); return 0; } 4 8 2 1
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

The output will be 1.

Explanation: In the C programming language, the sizeof operator is used to get the size of a variable type or a variable. In this case, the variable 'i' is of type char. The size of the char data type is always 1 byte. Therefore, the output of the program will be 1. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.

ee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem. Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study p

This problem has been solved

Similar Questions

What will be the output of the following C code?

Which will be the output? #include<stdio.h> int main () { char i=65; printf (“%d”, sizeof(i)); return 0; } 4 8 2 1

Which will be the output?#include<stdio.h>int main (){  char i=65;  printf (“%d”, sizeof(i));  return 0;}

Which will be the output?#include<stdio.h>int main (){  char i=65;  printf (“%d”, sizeof(i));  return 0;}ans.

What will be the output of the following Python code?print(['f', 't'][bool('spam')])Optionserrorftno output

1/3