Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Deep C (and C++)                                     by Olve Maudal and Jon Jagger                                        ...
Suppose you are about to interview a candidate for a position asC programmer for various embedded platforms. As part of th...
Suppose you are about to interview a candidate for a position asC programmer for various embedded platforms. As part of th...
Suppose you are about to interview a candidate for a position asC programmer for various embedded platforms. As part of th...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main()                     {   ...
What will happen if you try to compile, link and run this program?                     int main(void)                     ...
What will happen if you try to compile, link and run this program?                      int main(void)                    ...
What will happen if you try to compile, link and run this program?                     int main(void)                     ...
What will happen if you try to compile, link and run this program?                     int main(void)                     ...
What will happen if you try to compile, link and run this program?                     int main(void)                     ...
What will happen if you try to compile, link and run this program?                     int main(void)                     ...
What will happen if you try to compile, link and run this program?                     int main(void)                     ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
What will happen if you try to compile, link and run this program?                     #include <stdio.h>                 ...
Is there any difference between these two candidates?
Is there any difference between these two candidates? Not much, yet, but I really like her answers so far.
Now suppose they are not really candidates. Perhaps theyare stereotypes for engineers working in your organization?
Now suppose they are not really candidates. Perhaps theyare stereotypes for engineers working in your organization?
Now suppose they are not really candidates. Perhaps they   are stereotypes for engineers working in your organization?Woul...
Let’s find out how deep their knowledge of C and C++ is...
Let’s find out how deep their knowledge of C and C++ is...
#include <stdio.h>void foo(void){    int a = 3;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>       it will print 4, then 4, then 4void foo(void){    int a = 3;    ++a;    printf("%dn", a);}int mai...
#include <stdio.h>void foo(void){    int a = 3;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>void foo(void){    static int a = 3;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();   ...
#include <stdio.h>       it will print 4, then 5, then 6void foo(void){    static int a = 3;    ++a;    printf("%dn", a);}...
#include <stdio.h>void foo(void){    static int a = 3;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();   ...
#include <stdio.h>void foo(void){    static int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo...
#include <stdio.h>void foo(void){    static int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo...
#include <stdio.h>void foo(void){    static int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo...
#include <stdio.h>       eh, is it undefined? do you get garbage values?void foo(void){    static int a;    ++a;    printf(...
#include <stdio.h>       eh, is it undefined? do you get garbage values?void foo(void)                                     ...
#include <stdio.h>       eh, is it undefined? do you get garbage values?void foo(void)                                     ...
#include <stdio.h>       eh, is it undefined? do you get garbage values?void foo(void)                                     ...
#include <stdio.h>       eh, is it undefined? do you get garbage values?void foo(void)                                     ...
#include <stdio.h>       eh, is it undefined? do you get garbage values?void foo(void)                                     ...
#include <stdio.h>void foo(void){    static int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo...
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
Now you get 1, then 1, then 1#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    f...
Now you get 1, then 1, then 1#include <stdio.h>                         Ehm, why do you think that will happen?void foo(vo...
Now you get 1, then 1, then 1#include <stdio.h>                            Ehm, why do you think that will happen?void foo...
Now you get 1, then 1, then 1#include <stdio.h>                            Ehm, why do you think that will happen?void foo...
Now you get 1, then 1, then 1#include <stdio.h>                            Ehm, why do you think that will happen?void foo...
Now you get 1, then 1, then 1#include <stdio.h>                            Ehm, why do you think that will happen?void foo...
Now you get 1, then 1, then 1#include <stdio.h>                                Ehm, why do you think that will happen?void...
Now you get 1, then 1, then 1#include <stdio.h>                                Ehm, why do you think that will happen?void...
Now you get 1, then 1, then 1#include <stdio.h>                                Ehm, why do you think that will happen?void...
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>       Why do you think static variables are set to 0,                         while auto variables are ...
#include <stdio.h>       Why do you think static variables are set to 0,                         while auto variables are ...
#include <stdio.h>       Why do you think static variables are set to 0,                         while auto variables are ...
#include <stdio.h>       Why do you think static variables are set to 0,                         while auto variables are ...
#include <stdio.h>       Why do you think static variables are set to 0,                         while auto variables are ...
#include <stdio.h>       Why do you think static variables are set to 0,                         while auto variables are ...
#include <stdio.h>        Why do you think static variables are set to 0,                          while auto variables ar...
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>static int a;void foo(void){    int a;    ++a;    printf("%dn", a);}int main(void){    foo();    foo(); ...
#include <stdio.h>static int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>static int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>static int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>static int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
1, 2, 3#include <stdio.h>static int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    ...
1, 2, 3#include <stdio.h>                           ok, why?static int a;void foo(void){    ++a;    printf("%dn", a);}int ...
1, 2, 3#include <stdio.h>                                               ok, why?static int a;                         beca...
1, 2, 3#include <stdio.h>                                               ok, why?static int a;                         beca...
1, 2, 3#include <stdio.h>                                               ok, why?static int a;                         beca...
#include <stdio.h>static int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
garbage, garbage, garbage#include <stdio.h>int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();   ...
garbage, garbage, garbage#include <stdio.h>                             why do you think that?int a;void foo(void){    ++a...
garbage, garbage, garbage#include <stdio.h>                              why do you think that?int a;                     ...
garbage, garbage, garbage#include <stdio.h>                              why do you think that?int a;                     ...
garbage, garbage, garbage#include <stdio.h>                              why do you think that?int a;                     ...
garbage, garbage, garbage#include <stdio.h>                              why do you think that?int a;                     ...
garbage, garbage, garbage#include <stdio.h>                                           why do you think that?int a;        ...
garbage, garbage, garbage#include <stdio.h>                                               why do you think that?int a;    ...
garbage, garbage, garbage#include <stdio.h>                                               why do you think that?int a;    ...
#include <stdio.h>int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
#include <stdio.h>int a;void foo(void){    ++a;    printf("%dn", a);}int main(void){    foo();    foo();    foo();}
it will print 1, 2, 3, the variable is still statically#include <stdio.h>                allocated and it will be set to 0...
it will print 1, 2, 3, the variable is still statically#include <stdio.h>                allocated and it will be set to 0...
it will print 1, 2, 3, the variable is still statically#include <stdio.h>                         allocated and it will be...
I am now going to show you something cool!
I am now going to show you something cool!#include <stdio.h>void foo(void){    int a;    printf("%dn", a);}void bar(void){...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.outvoid foo(void){    int a;...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                $ cc foo.c && ./a.out                         ...
I am now going to show you something cool!#include <stdio.h>                 $ cc foo.c && ./a.out                        ...
#include <stdio.h>       $ cc -O foo.c && ./a.out                         1606415608void foo(void){    int a;    printf("%...
#include <stdio.h>       $ cc -O foo.c && ./a.out                         1606415608void foo(void){    int a;    printf("%...
#include <stdio.h>       $ cc -O foo.c && ./a.out                         1606415608void foo(void){    int a;             ...
So what about this code snippet?
So what about this code snippet?#include <stdio.h>void foo(void){    int a = 41;    a = a++;    printf("%dn", a);}int main...
#include <stdio.h>void foo(void){    int a = 41;    a = a++;    printf("%dn", a);}int main(void){    foo();}
#include <stdio.h>       I would never write code like that.void foo(void){    int a = 41;    a = a++;    printf("%dn", a)...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>       I would never write code like that.void foo(void)                                      That’s nic...
#include <stdio.h>                 I would never write code like that.void foo(void)                                      ...
#include <stdio.h>void foo(void){    int a = 41;    a = a++;    printf("%dn", a);}int main(void){    foo();}
#include <stdio.h>void foo(void){    int a = 41;    a = a++;    printf("%dn", a);}int main(void){    foo();}
#include <stdio.h>       a gets an undefined valuevoid foo(void){    int a = 41;    a = a++;    printf("%dn", a);}int main(...
#include <stdio.h>        a gets an undefined valuevoid foo(void)                         I don’t get a warning when compil...
#include <stdio.h>          a gets an undefined valuevoid foo(void)                           I don’t get a warning when co...
#include <stdio.h>                  a gets an undefined valuevoid foo(void)                                  I don’t get a ...
#include <stdio.h>                                      a gets an undefined valuevoid foo(void)                            ...
So what about this code snippet?
So what about this code snippet?#include <stdio.h>int b(void) { puts(“3”); return 3; }int c(void) { puts(“4”); return 4; }...
#include <stdio.h>int b(void) { puts(“3”); return 3; }int c(void) { puts(“4”); return 4; }int main(void){    int a = b() +...
#include <stdio.h>     int b(void) { puts(“3”); return 3; }     int c(void) { puts(“4”); return 4; }     int main(void)   ...
#include <stdio.h>     int b(void) { puts(“3”); return 3; }     int c(void) { puts(“4”); return 4; }     int main(void)   ...
#include <stdio.h>     int b(void) { puts(“3”); return 3; }     int c(void) { puts(“4”); return 4; }     int main(void)   ...
#include <stdio.h>     int b(void) { puts(“3”); return 3; }     int c(void) { puts(“4”); return 4; }     int main(void)   ...
#include <stdio.h>     int b(void) { puts(“3”); return 3; }     int c(void) { puts(“4”); return 4; }     int main(void)   ...
#include <stdio.h>     int b(void) { puts(“3”); return 3; }     int c(void) { puts(“4”); return 4; }     int main(void)   ...
#include <stdio.h>int b(void) { puts(“3”); return 3; }int c(void) { puts(“4”); return 4; }int main(void){    int a = b() +...
#include <stdio.h>int b(void) { puts(“3”); return 3; }int c(void) { puts(“4”); return 4; }int main(void){    int a = b() +...
#include <stdio.h>      int b(void) { puts(“3”); return 3; }      int c(void) { puts(“4”); return 4; }      int main(void)...
#include <stdio.h>      int b(void) { puts(“3”); return 3; }      int c(void) { puts(“4”); return 4; }      int main(void)...
At this point I think he has just revealed a shallowunderstanding of C programming, while she hasexcelled in her answers s...
So what is it that she seems to understand better than most?
So what is it that she seems to understand better than most?               • Declaration and Definition
So what is it that she seems to understand better than most?               • Declaration and Definition               • Cal...
So what is it that she seems to understand better than most?               • Declaration and Definition               • Cal...
So what is it that she seems to understand better than most?               • Declaration and Definition               • Cal...
So what is it that she seems to understand better than most?               • Declaration and Definition               • Cal...
So what is it that she seems to understand better than most?               • Declaration and Definition               • Cal...
We’d like to share some things about:      Sequence points      Different C standards
What do these code snippets print?
What do these code snippets print?1   int a=41; a++; printf("%dn", a);
What do these code snippets print?1   int a=41; a++; printf("%dn", a);2   int a=41; a++ & printf("%dn", a);
What do these code snippets print?1   int a=41; a++; printf("%dn", a);2   int a=41; a++ & printf("%dn", a);3   int a=41; a...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);2   int a=41; a++ & printf("%dn", a);3   int a=41; a...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);2   int a=41; a++ & printf("%dn", a);3   int a=41; a...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);            422   int a=41; a++ & printf("%dn", a);3...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);            422   int a=41; a++ & printf("%dn", a); ...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);            422   int a=41; a++ & printf("%dn", a); ...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);            422   int a=41; a++ & printf("%dn", a); ...
What do these code snippets print?1   int a=41; a++; printf("%dn", a);            422   int a=41; a++ & printf("%dn", a); ...
What do these code snippets print?1    int a=41; a++; printf("%dn", a);            42 2   int a=41; a++ & printf("%dn", a)...
Sequence PointsA sequence point is a point in the programsexecution sequence where all previous side-effects shall have ta...
Sequence Points - Rule 1Between the previous and next sequence point anobject shall have its stored value modified at most...
Sequence Points - Rule 2Furthermore, the prior value shall be read only todetermine the value to be stored. (6.5)         ...
Sequence PointsA lot of developers think C has many sequence points
Sequence PointsThe reality is that C has very few sequence points.This helps to maximize optimization opportunitiesfor the...
/* K&R C */                         // C++ (C++98)void say_it(a, s)                   #include <cstdio>     int a;     cha...
Let’s get back to our two developers...
So what about this code snippet?
So what about this code snippet?#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", size...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%dn", sizeof(int))...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%dn", sizeof(int))...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%dn", sizeof(int))...
#include <stdio.h>       struct X { int a; char b; int c; };       int main(void)       {           printf("%dn", sizeof(i...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%dn", sizeof(int));    printf("%dn", sizeo...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%zun", sizeof(int)...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%zun", sizeof(int)...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%zun", sizeof(int)...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%zun", sizeof(int)...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%zun", sizeof(int)...
#include <stdio.h>      struct X { int a; char b; int c; };      int main(void)      {          printf("%zun", sizeof(int)...
#include <stdio.h>                   struct X { int a; char b; int c; };                   int main(void)                 ...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>    struct X { int a; char b; int c; };    int main(void)    {        printf("%zun", sizeof(int));      ...
#include <stdio.h>    struct X { int a; char b; int c; };    int main(void)    {        printf("%zun", sizeof(int));      ...
#include <stdio.h>    struct X { int a; char b; int c; };    int main(void)    {        printf("%zun", sizeof(int));      ...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>struct X { int a; char b; int c; };int main(void){    printf("%zun", sizeof(int));    printf("%zun", siz...
#include <stdio.h>    struct X { int a; char b; int c; };    int main(void)    {        printf("%zun", sizeof(int));      ...
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
#include <stdio.h>struct X { int
Nächste SlideShare
Wird geladen in …5
×

#include <stdio.h>struct X { int Deep C

1.157.311 Aufrufe

Veröffentlicht am

#include <stdio.h>struct X { int a; char b; int c; };int main(void){ printf("%dn", sizeof(int)); printf("%dn", sizeof(char)); printf("%dn", sizeof(struct X));} It will print 4, 1 and 12 Indeed, it is exactly what I get on my machine Well of course, because sizeof returns the number of bytes. And in Cint is 32 bits or 4 bytes, char is one byte and when the the size of structs are always rounded up to multiples of 4 ok

Veröffentlicht in: Technologie
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • Did you try ⇒ www.WritePaper.info ⇐?. They know how to do an amazing essay, research papers or dissertations.
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • If you’re looking for a great essay service then you should check out ⇒ www.WritePaper.info ⇐. A friend of mine asked them to write a whole dissertation for him and he said it turned out great! Afterwards I also ordered an essay from them and I was very happy with the work I got too.
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • I was looking for a car through AutoTrader, but decided to join Gov-Auctions and I bought my new car and saved over $8700. ✤✤✤ https://w.url.cn/s/Ayy1McS
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

×