#include <stdio.h> int main() { char *a[2] = {"hello", "hi"}; printf("%d", sizeof(a)); return 0; }
a) 9
b) 4
c) 8
d) 10
What will be the output of the following C code (considering sizeof char is 1 and pointer is 4)?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code (considering sizeof char is 1 and pointer is 4)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!