Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int n = 5;
- int *p = &n;
- ///////////////////////////////////////////////////
- int main() //
- {
- printf(" n = %d\n", n);
- printf(" p = %d\n", p);
- printf("*p = %d\n", *p);
- printf("&n = %d\n", &n);
- }
- /*
- #include <stdio.h>
- char sz[99] = "SONY";
- ///////////////////////////////////////////////////
- int main() //
- {
- for(int i = 0; i < 4; i++)
- {
- }
- }
- */
- /*
- #include <stdio.h>
- char c = 'B';
- int n = 71;
- __int8 n2 = 'Z';
- float f1;
- double f2;
- ///////////////////////////////////////////////////
- int main() //
- {
- printf("n2 = %d\n", n2);
- printf("size of char = %d\n", sizeof(c ) );
- printf("size of int = %d\n", sizeof(n2) );
- printf("size of float = %d\n", sizeof(f1) );
- printf("size of double = %d\n", sizeof(double) );
- }
- */
- /*
- #include <stdio.h>
- char c = 'B';
- ///////////////////////////////////////////////////
- int main() //
- {
- int n;
- if(n == 1)
- {
- printf("c = %d\n", c);
- if(n == 1)
- }
- printf("c = %d\n", c);
- switch(c)
- {
- case 66: printf("B\n");
- break;
- case 67: printf("C\n");
- break;
- }
- return 0;
- }
- */
- /*
- #include <stdio.h>
- char c = 'B';
- ///////////////////////////////////////////////////
- int main() //
- {
- printf("c = %d\n", c);
- switch(c)
- {
- case 66: printf("B\n");
- break;
- case 67: printf("C\n");
- break;
- }
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement