Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- float f = 3.14;
- int n = 123;
- char c = 'R';
- void foo();
- ///////////////////////////////////////////////////////////////////
- int main() //
- {
- foo();
- }
- ////////////////////////////////////////////////////////////////////
- void foo()
- {
- printf("n = %d\n", n);
- }
- /*
- #include <stdio.h>
- ///////////////////////////////////////////////////////////////////
- int main() //
- {
- float f = 3.14;
- int n = 123;
- char c = 'R';
- // scanf("%d", &n);
- printf("n = %d\n", n);
- }
- */
- #include <stdio.h>
- ///////////////////////////////////////////////////////////////////
- int main() //
- {
- float f = 3.14;
- int n = 123;
- char c = 'R';
- char sz[99] = "____ = %d, %d, %s \n";
- printf(sz, n, 333, "SONY");
- printf("SONY = %.2f\n", f );
- printf("c = %c \n", c );
- printf("c = %d \n", c );
- printf("c = %s \n", "SONY");
- printf("c = %s \n", sz );
- return 0;
- }
- /*
- #include <stdio.h>
- ///////////////////////////////////////////////////////////////////
- int main() //
- {
- float f = 3.14;
- int n = 123;
- char c = 'R';
- char sz[99] = "Pictures";
- printf("SONY = %d, %d, %s \n", n, 333, "SONY");
- printf("SONY = %.2f\n", f );
- printf("c = %c \n", c );
- printf("c = %d \n", c );
- printf("c = %s \n", "SONY");
- printf("c = %s \n", sz );
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement