Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged sizeof-operator
1
votes
1
answer
1
sizeof
#include <stdio.h> int main() { int a = 1; char d[] = "ab"; printf("%d", sizeof(a+d)); return 0; } Explain the Output
#include <stdio.h int main() { int a = 1; char d[] = "ab"; printf("%d", sizeof(a+d)); return 0; }Explain the Output
Shiva Sagar Rao
673
views
Shiva Sagar Rao
asked
Feb 16, 2019
Programming in C
programming-in-c
sizeof-operator
+
–
1
votes
1
answer
2
How does sizeof() operator work for multidimensional array ?
If I have an array : int a[2][3][4] ; How to evaluate below Outputs ? 1. sizeof(*a) 2.sizeof(**a) 3. sizeof(a) Please explain precisely .
If I have an array :int a [3][4] ; How to evaluate below Outputs ? 1. sizeof(*a) 2.sizeof( a) 3. sizeof(a) Please explain precisely .
radha gogia
1.7k
views
radha gogia
asked
Jul 10, 2018
Programming in C
programming-in-c
sizeof-operator
+
–
1
votes
2
answers
3
array sizeof
#include<stdio.h> int main() { char *s="\123456789\n"; printf("%d", sizeof(s)); return 0; } why this piece of code gives output $8$ please explain. thanx
#include<stdio.h int main() { char *s="\123456789\n"; printf("%d", sizeof(s)); return 0; }why this piece of code gives output $8$please explain. thanx
raushan sah
1.2k
views
raushan sah
asked
May 24, 2018
Programming in C
programming-in-c
sizeof-operator
+
–
1
votes
1
answer
4
Size of operator
#include<stdio.h> int main(void) { printf("bytes occupied by '7' = %d\n", sizeof('7')); printf("bytes occupied by 7 = %d\n", sizeof(7)); printf("bytes occupied by 7.0 = %d\n", sizeof(7.0)); return 0; }
#include<stdio.h int main(void) { printf("bytes occupied by '7' = %d\n", sizeof('7')); printf("bytes occupied by 7 = %d\n", sizeof(7)); printf("bytes occupied by 7.0 = %d...
saumya mishra
1.7k
views
saumya mishra
asked
May 15, 2018
Programming in C
programming-in-c
sizeof-operator
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register