Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- int A = 5, B = 7, count_one, count_two;
- // %nフォーマット文字列の例(文字'X'までに出力したバイト数が、
- // それぞれcount_oneとcount_twoに格納される)
- printf("The number of bytes written up to this point X%n is being stored is count_one, and the number of bytes up to here X %n is being stored in count_two.\n", &count_one, &count_two);
- printf("count_one: %d\n", count_one);
- printf("count_two: %d\n", count_two);
- // スタックの例
- printf("A is %d and is at %08x. B is %x.\n", A, &A, B);
- exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement