Search Results: Printf format string
Redirect to:
This page is a redirect. The following categories are used to track and monitor this redirect:
|
Printf
Jumat, 2026-07-03 03:43:56printf is a C standard library function and is also a Linux terminal (shell) command that formats text and writes it to standard output. The function accepts...
Click to read more »Printf (Unix)
Senin, 2026-05-11 00:44:37printf is a shell command that formats and outputs text like the same-named C function. It is available in a variety of Unix and Unix-like systems. Some...
Click to read more »Bash (Unix shell)
Minggu, 2026-08-02 11:31:20Group $ printf '<newline>: <%b>\n' $'\n' <newline>: < > $ printf '<tab>: <%b>\n' $'\t' <tab>: < > $ printf '<space>: <%s>\n' " " <space>: < > $ printf '<NUL>:...
Click to read more »Pretty-printing
Jumat, 2026-08-14 21:22:09k){if(k<1||k>2){printf("out of range\n"); printf("this function requires a value of 1 or 2\n");}else{ printf("Switching\n");switch(k){case 1:printf("1\n");break;case...
Click to read more »Code injection
Rabu, 2026-07-15 10:53:25"Password1"; printf("Enter an integer\n"); scanf("%d", &number); printf("Please enter a string\n"); fgets(input, sizeof(input), stdin); printf(input); printf("\n");...
Click to read more »Stat (system call)
Selasa, 2026-07-07 07:11:47exit(EXIT_FAILURE); } printf("%s:\n", argv[i]); printf("\tinode: %u\n", sb.st_ino); printf("\tperms: %o\n", sb.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)); printf("\tlinks:...
Click to read more »Uncontrolled format string
Senin, 2026-06-22 15:12:59string parameter in certain C functions that perform formatting, such as printf(). A malicious user may use the %s and %x format tokens, among others, to...
Click to read more »Debugging
Rabu, 2026-08-19 11:54:55into the source code. The latter is sometimes called printf debugging, due to the use of the printf function in C. This kind of debugging was turned on...
Click to read more »Echo (command)
Rabu, 2026-02-11 02:38:06and back to Normal ${NORMAL}" Portably with printf: BGRED=`printf '\33[41m'` NORMAL=`printf '\33[m'` printf '%s\n' "${BGRED}Text on red background${NORMAL}"...
Click to read more »Volatile (computer programming)
Minggu, 2025-11-30 05:26:43be created on stack int a = 10; int b = 100; int c = 0; int d = 0; /* "printf" will be called with arguments "%d" and 110 (the compiler computes the sum...
Click to read more »Standard streams
Sabtu, 2026-08-08 05:12:00System.out.printf("Number is: %d%n", number); // Read input for a name and age: Scanner input = new Scanner(System.in); System.out.printf("%nEnter name:...
Click to read more »C data types
Kamis, 2026-08-20 08:55:58functionality of the types defined in the <stdint.h> header. It defines macros for printf format string and scanf format string specifiers corresponding to the types...
Click to read more »Gettext
Senin, 2025-11-24 09:52:13clutter, this function is commonly aliased to _: printf(gettext("My name is %s.\n"), my_name); printf(_("My name is %s.\n"), my_name); // same, but shorter...
Click to read more »X86 assembly language
Kamis, 2026-08-06 11:00:43compiled ; against the C Standard Library extern printf ; declares the use of external symbol, as printf ; printf is declared in a different object-module. ;...
Click to read more »%s
Selasa, 2025-09-16 21:42:35%s may refer to: %s, in printf format string %s, in scanf format string %s, seconds in the strftime format string %s, used to check the Unix timestamp...
Click to read more »TECO (text editor)
Rabu, 2026-06-03 15:06:29hello.c with the following contents: int main(int argc, char **argv) { printf("Hello world!\n"); return 0; } ... one could use the following TECO session...
Click to read more »ANSI escape code
Minggu, 2026-08-02 07:58:10such as with make ; flasher . flasher () { while true; do printf '\e[?5h'; sleep 0.1; printf '\e[?5l'; read -s -n1 -t1 && break; done; } The following...
Click to read more »Syntax highlighting
Senin, 2026-04-27 06:41:28#include <stdio.h> int main() { printf("Hello World\n"); return 0; } // Hello World #include <stdio.h> int main() { printf("Hello World\n"); return 0; }...
Click to read more »X macro
Jumat, 2026-07-31 10:24:23value2; int value3; void variables() { printf("%s = %d\n", "value1", value1); printf("%s = %d\n", "value2", value2); printf("%s = %d\n", "value3", value3); }...
Click to read more »Input Field Separators
Kamis, 2023-08-24 00:34:43bash shell or printing IFS with commands like printf %s "$IFS" | od -c, printf "%q\n" "$IFS" or printf %s "$IFS" | cat -A (the latter two commands being...
Click to read more »Control-flow graph
Minggu, 2026-05-24 20:28:46print_within_parentheses(const char *p) { printf("("); // 1 if (p != NULL) { // 1 printf("%s", p); // 2 } // 2 printf(")"); // 3 } This function has three...
Click to read more »Venetian Snares
Jumat, 2026-07-31 05:41:29including Salt, 7 sevens.med, Shitfuckers!, and his fourth studio album, printf("shiver in eternal darkness/n");. Funk then moved to using a PC sometime...
Click to read more »C (programming language)
Senin, 2026-08-17 06:38:30original version was: main() { printf("hello, world\n"); } A more modern version is: #include <stdio.h> int main(void) { printf("hello, world\n"); } The first...
Click to read more »Bitwise operations in C
Kamis, 2026-06-18 14:18:290; i--) { putchar(x & (1u << i) ? '1' : '0'); } printf("\n"); } int main( void ) { int j = 5225; printf("%d in binary \t\t ", j); showbits(j); /* the loop...
Click to read more »C file input/output
Minggu, 2026-08-02 11:37:15fclose(fp); return EXIT_FAILURE; } fclose(fp); printf("The bytes read were: "); for (size_t i = 0; i < len; ++i) { printf("%02X ", (unsigned char)buffer[i]); }...
Click to read more »Polyglot (computing)
Kamis, 2026-07-23 02:59:42#define main() int main(void) #define printf printf( #define true ) #define function function main() { printf "Hello, world!\n"true/* 2> /dev/null |...
Click to read more »Operator-precedence parser
Jumat, 2026-05-01 21:35:49continue; case ')': printf("))))"); continue; case '^': printf(")^("); continue; case '*': printf("))*(("); continue; case '/': printf("))/(("); continue;...
Click to read more »Pthreads
Senin, 2026-06-08 19:26:59NUM_THREADS; printf("Thread %d: Started.\n", index); printf("Thread %d: Will be sleeping for %d seconds.\n", index, sleep_time); sleep(sleep_time); printf("Thread...
Click to read more »String interpolation
Jumat, 2026-07-24 14:38:50concatenation, which requires repeat quoting and unquoting; or substituting into a printf format string, where the variable is far from where it is used. Consider...
Click to read more »Loop unrolling
Jumat, 2026-03-27 13:33:58(repeat--) { printf("process(%d)\n", i); printf("process(%d)\n", i + 1); printf("process(%d)\n", i + 2); printf("process(%d)\n", i + 3); printf("process(%d)\n"...
Click to read more »Scanf
Sabtu, 2026-06-13 01:29:4868. Input format strings are complementary to output format strings (see printf), which provide formatted output (templating). Mike Lesk's portable input/output...
Click to read more »Man page
Sabtu, 2026-08-08 22:15:27for reading printf(3C) is: man -s 3c printf On Linux and BSD derivatives the same invocation would be: man 3 printf which searches for printf in section...
Click to read more »Stdarg.h
Selasa, 2026-06-16 09:54:31ellipsis in place of the last parameter. An example of such a function is printf. Respectively, declarations and definitions are done similarly as such int...
Click to read more »C syntax
Minggu, 2026-07-26 07:05:02(num) { case 1: printf("Number is 1\n"); break case 2: printf("Number is 2\n"); break; case 3: printf("Number is 3\n"); break; default: printf("Number is not...
Click to read more »Printk
Minggu, 2026-07-19 02:23:26printk is a printf-like function of the Linux kernel interface for formatting and writing kernel log entries. Since the C standard library (which contains...
Click to read more »Hexadecimal
Jumat, 2026-08-28 01:18:03represents the Esc control character) and to output an integer as hex via printf-like function, the format conversion code %X or %x is used In URIs (including...
Click to read more »LLDB (debugger)
Jumat, 2026-02-13 12:37:28in C: #include <stdio.h> int main(void) { char msg = "Hello, world!\n"; printf("%s", msg); return 0; } Using the clang compiler on macOS, the code above...
Click to read more »Setjmp.h
Kamis, 2026-02-05 06:32:56skipping first()'s call of printf(). #include <setjmp.h> #include <stdio.h> static jmp_buf buf; void second() { printf("second\n"); // prints longjmp(buf...
Click to read more »Python (programming language)
Kamis, 2026-08-27 11:41:16Python has a "string format" operator % that functions analogously to printf format strings in the C language—e.g. "spam=%s eggs=%d" % ("blah", 2) evaluates...
Click to read more »Getopt
Kamis, 2026-07-30 06:39:20{ printf("digits occur in two different argv-elements.\n"); } digit_optind = this_option_optind; printf("option %c\n", c); break; case 'a': printf("option...
Click to read more »Placeholder
Kamis, 2026-04-23 21:43:16placeholder, used in computing to format strings within print functions (printf). Line stander, a person standing in a queue for another. Placeholder (politics)...
Click to read more »Mmap
Sabtu, 2026-07-25 13:59:05case 0: childpid = getpid(); printf("PID %d:\tanonymous %s, zero-backed %s\n", childpid, anon, zero); sleep(3); printf("PID %d:\tanonymous %s, zero-backed...
Click to read more »Quine (computing)
Jumat, 2026-08-07 22:58:22for (int i = 0; i < l.length; i++) { // Print string array", " System.out.printf(\"%s%c%s%c,%n\", l[4], q, l[i], q);", " }", " for (int i = 5; i < l.length;...
Click to read more »Secure coding
Sabtu, 2026-07-04 20:25:43performs formatting, such as printf(). The attack involves the adversary reading from or writing to the stack. The C printf function writes output to stdout...
Click to read more »Glibc
Sabtu, 2026-07-25 18:08:35APIs include such foundational facilities as open, read, write, malloc, printf, getaddrinfo, dlopen, pthread_create, crypt, login, exit and more. The glibc...
Click to read more »ALGOL
Rabu, 2026-08-12 17:49:27algol68 test: ( real a,b,c,d; # printf – sends output to the file stand out. # # printf($p$); – selects a new page # printf(($pg$,"Enter d:")); read(d);...
Click to read more »F Sharp (programming language)
Kamis, 2026-08-20 07:31:16type fields Extensions to array slicing Type inference enhancements 4.0 Printf on unitized values Extension property initializers Non-null provided types...
Click to read more »Hello, world
Kamis, 2026-08-27 02:50:58memorandum by Brian Kernighan, Programming in C: A Tutorial: main( ) { printf("hello, world"); } In the above example, the main( ) function defines where...
Click to read more »Shotgun surgery
Minggu, 2026-06-21 04:40:50<stdio.h> void fn() { printf("Entering fn\n"); // ... } void fn2() { printf("Entering fn2\n"); // ... } // ... void fnN() { printf("Entering fnN\n"); //...
Click to read more »Scientific notation
Jumat, 2026-08-21 03:02:34to be decimal. This notation can be produced by implementations of the printf family of functions following the C99 specification and (Single Unix Specification)...
Click to read more »Objective-C
Sabtu, 2026-05-09 16:57:01[self integer]; for (i = 0; i < x; i++) { printf("*"); } printf("\n"); return self; } - (id) showint { printf("%d\n", [self integer]); return self; } @end...
Click to read more »Command (computing)
Rabu, 2026-08-12 01:24:37conditional. For example, printing a message in Bash is via the command printf, while in Python it is via the function print(). Further, some aspects of...
Click to read more »Fish (Unix shell)
Jumat, 2026-05-08 01:09:30commandline". GitHub. Retrieved 9 April 2021. Nordal, Andreas (11 July 2013). "printf does not support \e". fish issues. Retrieved 24 March 2016. Official website...
Click to read more »Structural type system
Rabu, 2026-08-19 05:53:59types of methods: # let y = object method get_x = 2 method set_x y = Printf.printf "%d\n" y end;; val y : < get_x : int; set_x : int -> unit > = <obj>...
Click to read more »CPUID
Jumat, 2026-08-07 13:46:41m0[rip] mov esi, eax call printf xor eax, eax cpuid lea rdi, .m1[rip] mov esi, eax mov r12d, edx mov ebp, ecx call printf mov 3[rsp], ebx lea rsi, 3[rsp]...
Click to read more »C preprocessor
Jumat, 2026-07-03 00:59:14'stdio.h' in which the function printf() and other symbols are declared. #include <stdio.h> int main(void) { printf("Hello, World!\n"); return 0; } In...
Click to read more »Percent sign
Minggu, 2026-07-19 02:26:11functions such as printf and scanf), the percent sign denotes parts of the template string that will be replaced with arguments. (See printf format string...
Click to read more »Select (Unix)
Rabu, 2025-12-03 09:01:36sizeof(master)); printf("running select()\n"); int nready; if (nready = select(maxfd + 1, &readfds, NULL, NULL, NULL) == -1) { die("select()"); } printf("Number...
Click to read more »Join (Unix)
Rabu, 2026-08-26 00:35:41i in {1..9999} ; do printf -- '%010d\t%s\t%s\t%s\n' "$((2*i*(i+1)+1))" "$i" "$((i+1))" ; done) <(for i in {1..9999} ; do printf -- '%010d\t%s\n' "$((i**2))"...
Click to read more »Switch statement
Senin, 2026-06-15 22:51:24(age) { case 0: printf("You're newborn!"); break; case 1: printf("You're one."); break; case 2: printf("You're two."); break; case 3: printf("You're three...
Click to read more »ROBODoc
Jumat, 2025-08-15 10:13:37* RB_Close_The_Shop () * SOURCE */ { printf ("Robodoc: Error, %s\n",cause) ; printf (" %s\n", add_info) ; printf ("Robodoc: Panic Fatal error, closing...
Click to read more »Splint (programming tool)
Senin, 2025-08-11 10:31:45if (c = 'x') return 0; switch (c) { case '\n': case '\r': printf("Newline\n"); default: printf("%c",c); } } return 0; } Splint's output: Variable c used...
Click to read more »Struct (C programming language)
Senin, 2026-06-08 22:47:49float gpa; }; // passing by value void print_student(struct Student s) { printf("Name: %s, ID: %d, in semester %d, with GPA: %.2f\n", s.name, s.id, s.semester...
Click to read more »Ellipsis (computer programming)
Rabu, 2026-04-08 08:52:48as: // prints "numbers 5 10 15" printf("numbers %i %i %i", 5, 10, 15); // prints "input string another string, 0.5" printf("input string %s, %f", "another...
Click to read more »Research Unix
Senin, 2026-06-29 19:02:33introduced comm, dump, file, grep, nice, nohup, ps, sleep, sync, tr, wait, and printf(3). Included a SNOBOL interpreter. Number of installations was listed as...
Click to read more »Go (programming language)
Sabtu, 2026-08-22 13:29:13:= shp.(Square) // Asserts Square type on shp, should work if ok { fmt.Printf("%#v\n", square) } else { fmt.Println("Can't print shape as Square") } and...
Click to read more »Java Native Access
Minggu, 2026-07-05 07:10:39CLibrary.class); void printf(String format, Object... args); } public static void main(String[] args) { CLibrary.INSTANCE.printf("Hello, World\n"); for...
Click to read more »Perl
Minggu, 2026-08-16 05:30:54$remaining=$total=shift(@ARGV); STDOUT->autoflush(1); while ( $remaining ) { printf ( "Remaining %s/%s \r", $remaining--, $total ); sleep 1; } print "\n"; To...
Click to read more »Infinite loop
Selasa, 2026-06-16 08:39:13loop" without halting, in C: #include <stdio.h> int main() { for (;;) { printf("Infinite loop\n"); } return 0; } The form for (;;) for an infinite loop...
Click to read more »Return type
Sabtu, 2025-11-01 06:50:07return type of void is used in some programming languages: void sayHello() { printf("Hello, world!"); } A method returns to the code that invoked it when it...
Click to read more »Gcov
Jumat, 2026-05-01 09:50:09for (i = 1; i < 10; i++) { if (i % 3 == 0) printf ("%d is divisible by 3\n", i); if (i % 11 == 0) printf ("%d is divisible by 11\n", i); } return 0;...
Click to read more »Barrier (computer science)
Rabu, 2026-04-15 09:13:26pthread_mutex_destroy(&(bar->lock)); } void *thread_func([[maybe_unused]] void *p) { printf("Thread ID %ld is waiting at barrier, as insufficient (%d) threads are running...
Click to read more »Hygienic macro
Sabtu, 2026-05-16 23:50:46{ int a=0; ++i; } int main(void) { int a = 4, b = 8; INCI(a); INCI(b); printf("a is now %d, b is now %d\n", a, b); return 0; } Running the above through...
Click to read more »C process control
Minggu, 2025-10-19 22:43:55"PATH environment variable not found.\n"); } else { printf("PATH variable: %s\n", path); } printf("Listing current directory contents using system(\"ls\"):\n");...
Click to read more »Singleton pattern
Sabtu, 2026-08-08 17:21:08} return instance; } public void executeQuery(String sql) { System.out.printf("Executing: %s%n"); } } // a tightly-coupled consumer class class OrderService...
Click to read more »Greg Hates Car Culture
Senin, 2026-02-02 03:19:03Producer Aaron Funk Venetian Snares chronology Rorschach Stuffocate (1999) Greg Hates Car Culture (1999) printf<"shiver in eternal darkness/n">; (2000)...
Click to read more »AWK
Jumat, 2026-08-21 01:15:15% 4 == 3 { printf "%6d %s\n", NR, $0 } The action statement prints each line numbered. The printf function emulates the standard C printf and works similarly...
Click to read more »C standard library
Senin, 2026-08-10 14:58:21C functions are also made available in namespace std (e.g., C printf as C++ std::printf, atoi as std::atoi, feof as std::feof), by including header <chdrname>...
Click to read more »Evaluation strategy
Jumat, 2026-05-01 04:09:52args) { Box a = new Box(1); Box b = new Box(2); swap(a, b); System.out.printf("a = %d, b = %d%n", a.value, b.value); // output: a = 2, b = 1 } } where...
Click to read more »Windows API
Kamis, 2026-08-20 13:08:11their first assignment. The working part of the program is only a single printf line within the main subroutine. The overhead for linking to the standard...
Click to read more »2-opt
Kamis, 2026-08-06 02:02:46{ printf("%s = [", pathName.c_str()); for (int i = 0; i < path.size(); i++) { if (i % 10 == 0) { printf("\n "); } if (i < path.size() - 1) { printf("[%...
Click to read more »Higher-order function
Minggu, 2026-06-07 03:28:25twice f = f >> f let plus_three = (+) 3 let g = twice plus_three g 7 |> printf "%A" // 13 package main import "fmt" func twice(f func(int) int) func(int)...
Click to read more »Toybox
Sabtu, 2026-06-13 19:06:18printenv — Print environment variables. printf — Format and print ARGUMENT according to FORMAT, using C printf syntax. prlimit — Print or set resource...
Click to read more »Java Native Interface
Kamis, 2026-08-27 21:40:37stdlib = linker.defaultLookup(); MethodHandle printf = linker.downcallHandle( stdlib.findOrThrow("printf"), FunctionDescriptor.of(ValueLayout.JAVA_INT...
Click to read more »Jackson (API)
Sabtu, 2026-05-30 07:07:35class); System.out.printf("Read and parsed Person from JSON: %s%n", q); Person p = new Person(1, "Roger", "Rabbit"); System.out.printf("Person object %s...
Click to read more »SystemTap
Selasa, 2026-05-05 05:14:48worked probe tcp.setsockopt.return { if ( ret == 0 ) printf ("success") else printf ("failed") printf ("\n") } probe end { print ("\nClosing down\n") } Many...
Click to read more »Increment and decrement operators
Jumat, 2026-07-03 01:49:39<stdio.h> int main() { int c = 2; printf("%d\n", c++); // this statement displays 2, then c is incremented by 1 to 3. printf("%d", ++c); // this statement...
Click to read more »Block (programming)
Minggu, 2026-04-05 09:21:07(underlings-of empno)))) (printf "~a has ~a employees working under him:~%" employee-name employees) (for-each (lambda (empno) (printf "Name: ~a, role: ~a~%"...
Click to read more »String literal
Selasa, 2026-06-30 07:31:12s[] = "hello, " "world"; printf("hello, " "world"); However, the following is invalid: char s[] = "hello, " + "world"; printf("hello, " + "world"); This...
Click to read more »OpenMP
Jumat, 2026-08-14 00:21:40#include <stdio.h> #include <omp.h> int main(void) { #pragma omp parallel printf("Hello, world.\n"); return 0; } Use flag -fopenmp to compile using GCC:...
Click to read more »Function pointer
Selasa, 2026-07-28 03:11:280); printf("sum(sin): %g\n", sum); // Use standard library function 'cos()' as the pointed-to function sum = compute_sum(cos, 0.0, 1.0); printf("sum(cos):...
Click to read more »99 Bottles of Beer
Kamis, 2026-08-27 16:01:08include <stdbool.h> int main(void) { for (size_t i = 99; i > 0; i--) { printf("%zu bottle%s of beer on the wall, %zu bottle%s of beer.\nTake one down...
Click to read more »C signal handling
Selasa, 2026-02-24 00:17:25return EXIT_FAILURE; } if (status == SIGINT) { printf("Interactive attention signal caught."); } printf("Exiting."); return EXIT_SUCCESS; // exiting after...
Click to read more »Exception handling syntax
Selasa, 2026-08-25 08:36:26OutOfBoundsException: printf("OutOfBoundsException caught"); break; // catch (ArithmeticException) case ArithmeticException: printf("ArithmeticException...
Click to read more »Blocks (C language extension)
Kamis, 2026-06-25 17:51:16mycounter = MakeCounter(5, 2); printf("First call: %d\n", mycounter()); printf("Second call: %d\n", mycounter()); printf("Third call: %d\n", mycounter());...
Click to read more »Venetian Snares discography
Selasa, 2026-07-14 21:44:10the 1999 EP, Greg Hates Car Culture, followed by his fourth studio album, printf("shiver in eternal darkness/n"); in May 2000. After hearing Greg Hates Car...
Click to read more »OCaml
Sabtu, 2026-08-15 07:38:36(year_size -. float people) /. year_size *. prob in if prob < 0.5 then Printf.printf "answer = %d\n" (people+1) else birthday_paradox prob (people+1) ;;...
Click to read more »Fork (system call)
Sabtu, 2026-07-18 16:05:07-1) { perror("fork failed"); return EXIT_FAILURE; } else if (pid == 0) { printf("Hello from the child process!\n"); return EXIT_SUCCESS; } else { int status;...
Click to read more »Céu (programming language)
Kamis, 2025-06-12 14:15:53" program that repeats every 250 milliseconds is: loop do await 250ms; _printf("Hello World!\n"); end Sant'Anna, Francisco (2023-02-12), fsantanna/ceu...
Click to read more »Ragel
Sabtu, 2026-05-23 22:04:41action dgt { printf("DGT: %c\n", fc); } action dec { printf("DEC: .\n"); } action exp { printf("EXP: %c\n", fc); } action exp_sign { printf("SGN: %c\n"...
Click to read more »UnxUtils
Senin, 2025-08-11 11:03:16mkdir mkfifo mknod mv mvdir nl od paste patch pathchk pclip pr printenv printf ptx pwd recode rm rman rmdir sdiff sed seq sh sha1sum shar sleep sort split...
Click to read more »Netstat
Selasa, 2025-09-30 00:27:37machine. Some versions of netstat lack explicit field delimiters in their printf-generated output, leading to numeric fields running together and thus corrupting...
Click to read more »Active record pattern
Rabu, 2026-02-18 00:00:55this.id); stmt.executeUpdate(); } } } catch (SQLException e) { System.err.printf("A SQLException occurred: %s%n", e.getMessage()); e.printStackTrace(); }...
Click to read more »Lua
Selasa, 2026-08-18 10:51:05lua_call(L, 2, 1); // call a function with two arguments and one return value printf("Result: %d\n", lua_tointeger(L, -1)); // print integer value of item at...
Click to read more »Sizeof
Minggu, 2026-01-11 22:30:05type is four bytes long, the following code fragment prints 1,4: char c; printf("%zu,%zu\n", sizeof c, sizeof(int)); Certain standard header files, such...
Click to read more »Dependency injection
Selasa, 2026-08-11 17:55:47} return instance; } public void executeQuery(String sql) { System.out.printf("Executing: %s%n"); } } // a tightly-coupled consumer class class OrderService...
Click to read more »Variadic function
Selasa, 2026-07-14 12:20:15variadic function in many languages is output formatting. The C function printf and the Common Lisp function format are two such examples. Both take one...
Click to read more »Computer program
Jumat, 2026-08-28 06:33:54primitives are max() and min(). The driver function is range(). For example, printf("%d", range(10, 4, 7)); will print 6. Functional languages are used in computer...
Click to read more »List of GNU packages
Rabu, 2025-08-06 21:39:03basename, chroot, date, dirname, echo, env, groups, hostname, nice, nohup, printf, sleep, etc. 9.11 2026-04-20 cpio archiving program cpio 2.15 2024-01-14...
Click to read more »Backtick
Jumat, 2026-08-21 05:50:28sometimes used in source code comments to indicate code, e.g., /* Use the `printf()` function. */ This is also the format the Markdown formatter uses to indicate...
Click to read more »C++ input/output library
Selasa, 2026-08-04 03:01:38on the existing fmtlib by Victor Zverovich. The API is similar to the C printf function (actually it matches Python's format) and is proving to be more...
Click to read more »Format (Common Lisp)
Rabu, 2025-06-25 11:41:47among distinct commands in some other programming languages, such as C's printf for console output, sprintf for string formatting, and fprintf for file...
Click to read more »Alpha beta filter
Selasa, 2025-09-02 21:05:27rk = xm - xk; xk += a * rk; vk += (b * rk) / dt; xk_1 = xk; vk_1 = vk; printf("%f \t %f\n", xm, xk_1); sleep(1); } } The following images depict the outcome...
Click to read more »Reflective programming
Kamis, 2026-08-06 06:26:33(*Method)(void*); // The method: Foo::printHello void Foo_printHello(void* _) { printf("Hello, world!\n"); } // Simulated method table typedef struct { const char*...
Click to read more »Pseudorandom binary sequence
Selasa, 2026-02-10 16:53:366) ^ (a >> 5)) & 1); a = ((a << 1) | newbit) & 0x7f; printf("%x\n", a); if (a == start) { printf("repetition period is %d\n", i); break; } } } In this...
Click to read more »Zombie process
Jumat, 2026-07-10 23:33:55pids[i] = fork(); if (pids[i] == 0) { printf("Child%d\n", i); sleep(i + 1); _exit(0); } } for (i = 9; i >= 0; --i) { printf("parent%d\n", i); waitpid(pids[i]...
Click to read more »String (computer science)
Minggu, 2026-08-16 11:08:41as strings. Some APIs like Multimedia Control Interface, embedded SQL or printf use strings to hold commands that will be interpreted. Many scripting programming...
Click to read more »Vala (programming language)
Selasa, 2026-03-24 08:42:41get invoked) } } void callback_a() { stdout.printf("Callback A\n"); } void callback_b() { stdout.printf("Callback B\n"); } void main() { var foo = new...
Click to read more »Scope (computer programming)
Rabu, 2026-06-03 13:44:24h> int main(void) { char x = 'm'; printf("%c\n", x); { printf("%c\n", x); char x = 'b'; printf("%c\n", x); } printf("%c\n", x); } The program outputs:...
Click to read more »Multiple dispatch
Rabu, 2026-04-22 18:52:42gnew(Spaceship); printf("<a,a> = %d\n", collide_with(a, a)); printf("<a,s> = %d\n", collide_with(a, s)); printf("<s,a> = %d\n", collide_with(s, a)); printf("<s,s>...
Click to read more »Dynamic-link library
Rabu, 2026-07-01 19:57:45b); int main(int argc, char *argv[]) { double result = AddNumbers(1, 2); printf("The result was: %f\n", result); return 0; } The following examples show...
Click to read more »Control flow
Minggu, 2026-08-16 20:01:39control jumps from line 1 to 4 if done is false. if (done) { printf("All done"); } else { printf("Still workin' on it"); } Many control commands have been...
Click to read more »Getopts
Jumat, 2024-05-24 02:17:23((verbose > 2)); then printf '%s\n' 'Non-option arguments:' printf '%q ' "${remaining[@]]}" fi if ((verbose > 1)); then printf 'Downloading %s:%s\n' "$lang"...
Click to read more »Dynamic dispatch
Kamis, 2026-08-27 05:43:22free(pet); } void dogSpeak(Pet* pet) { printf("%s says 'Woof!'\n", pet->name); } void catSpeak(Pet* pet) { printf("%s says 'Meow!'\n", pet->name); } void...
Click to read more »Comparison of programming languages (string functions)
Kamis, 2026-08-13 00:11:24= "Hello, World"; printf("%c", *(myStr1 + 1)); // 'e' printf("%c", *(myStr1 + 7)); // 'W' printf("%c", myStr1[11]); // 'd' printf("%s", myStr1); // 'Hello...
Click to read more »Indentation style
Jumat, 2026-08-14 07:45:56something(); something_else(); //... if (x < 0) { printf("Negative"); negative(x); } else { printf("Non-negative"); nonnegative(x); } } final_thing();...
Click to read more »X86 calling conventions
Kamis, 2026-07-09 20:04:05__attribute__((fastcall)) void printnums(int num1, int num2, int num3){ printf("The numbers you sent are: %d %d %d", num1, num2, num3); } int main(){ printnums(1...
Click to read more »List of POSIX commands
Senin, 2026-06-29 19:27:47Mandatory Paginate or columnate files for printing Version 1 AT&T UNIX printf Shell programming Mandatory Write formatted output 4.3BSD-Reno prs SCCS...
Click to read more »Async/await
Minggu, 2026-08-16 14:40:53sub_task(__async__, void* arg) { int n = (int)(size_t)arg; for (int i = 0; i < 5; ++i) { printf("task %d, delay seconds = %d, i = %d\n", n, n, i); s_task_msleep(__await__...
Click to read more »Variadic macro
Jumat, 2026-07-03 01:25:24added in GNU Compiler Collection 8, Clang 6, and Visual Studio 2019. If a printf-like function dbgprintf() were desired, which would take the file and line...
Click to read more »Obfuscation (software)
Senin, 2026-07-27 04:59:46{ int x = 5; int y = 7; printf("%d\n", x + y); return 0; } Obfuscated code: #include <stdio.h> int main(){int _=5,__=7;printf("%d\n",_-~__-1);} In the...
Click to read more »Cron
Kamis, 2026-07-30 09:23:21the default shell for the cron user is Bourne shell compliant: 1 0 * * * printf "" > /var/log/apache/error_log This example runs a shell program called...
Click to read more »Examples of anonymous functions
Kamis, 2026-06-25 21:54:27{ void (^count_loop)() = ^{ for (int i = 0; i < 100; i++) { printf("%d\n", i); } printf("ah ah ah\n"); }; // Pass as a parameter to another function...
Click to read more »Global variable
Jumat, 2026-06-26 22:37:18file-scope variable. printf("%d\n", shared); changeShared(); printf("%d\n", shared); localShadow(); printf("%d\n", shared); paramShadow(1); printf("%d\n", shared);...
Click to read more »Comparison of Pascal and C
Sabtu, 2025-11-01 04:28:38sizeof(wordlist[0]); for (int i = 0; i < listSize; i++) { printf(wordlist[i]); } for (int i = listSize - 1; i >= 0; i--) { printf(wordlist[i]); } Pascal has neither array...
Click to read more »Comparison of programming languages (basic instructions)
Jumat, 2026-04-17 13:09:36or puts(x) or printf $format$, x or printf($format$, x) STDERR.puts x or STDERR.puts(x) or STDERR.printf $format$, x or STDERR.printf($format$, x) D...
Click to read more »Bogosort
Jumat, 2026-07-31 09:36:05bogoSort(input, size); printf("Sorted result:"); for (size_t i = 0; i < size; i++) { printf(" %d", input[i]); } printf("\n"); return 0; } An implementation...
Click to read more »Darwin (programming language)
Senin, 2025-07-28 15:58:48nature and narrow ecosystem. One would write the Hello World program as: printf('Hello, world!\n'); The following procedure calculates the factorial of...
Click to read more »TPK algorithm
Sabtu, 2026-03-28 17:54:45(int i = 10; i >= 0; i--) { y = f(a[i]); if (y > 400) printf("%d TOO LARGE\n", i); else printf("%d %.16g\n", i, y); } } This shows a Python implementation...
Click to read more »C date and time functions
Senin, 2026-02-09 06:21:05Print to stdout. ctime() has already added a terminating newline character. printf("Current time is %s", time_string); return EXIT_SUCCESS; } The output is:...
Click to read more »Source lines of code
Minggu, 2026-05-24 16:34:15ambiguity encountered when determining SLOC: for (int i = 0; i < 100; i++) printf("hello"); /* display one hundred greetings */ In this example we have: 1...
Click to read more »Java syntax
Minggu, 2026-08-09 12:54:16} { System.out.printf("%s: instance block runtime%n", MyAbstractClass.class.getName()); } public AbstractClass() { System.out.printf("%s: constructor...
Click to read more »Far pointer
Kamis, 2026-07-02 13:42:51far *)0x55550005; char far *q = (char far *)0x53332225; *p = 80; (*p)++; printf("%d", *q); return 0; } Output of the following program: 81; Because both...
Click to read more »Namespace
Rabu, 2026-08-26 07:39:03dataset[] = {1.0, 2.0, 3.0, 4.0, 5.0}; printf("sin(0) = %d\n", Math.sin(0)); printf("pi is %f\n", Math.PI); printf("Average: %f\n", Math.Stats.mean(dataset...
Click to read more »C23 (C standard revision)
Jumat, 2026-04-10 02:43:03appear in compound literal definition. Add %b binary conversion specifier to printf() function family. Add %b binary conversion specifier to scanf() function...
Click to read more »Type safety
Jumat, 2026-08-14 13:36:04integer is something like printf("%d", 12), where the %d tells printf at run-time to expect an integer argument. (Something like printf("%s", 12), which tells...
Click to read more »Module pattern
Jumat, 2026-07-24 08:30:13consolesPrintNewLine() { printf("\n"); } void consolesPrintString(char* value) { printf("%s", value); } void consolesPrintInteger(int value) { printf("%d", &value);...
Click to read more »RushOrderTees
Rabu, 2026-06-17 00:50:13Vistaprint Zazzle "Interview with Michael Nemeroff, CEO and co-founder at Printfly". USA Weekly. 28 February 2018. Retrieved 12 October 2018. Mastrull, Diane...
Click to read more »Agent-oriented programming
Jumat, 2026-08-07 23:42:52protected void setup() { System.out.println("Hello, world!"); System.out.printf("My name is %s%n", getLocalName()); } public Hello() { System.out.println("Constructor...
Click to read more »Model–view–viewmodel
Minggu, 2026-07-19 04:07:24stdin = new Scanner(System.in); String input; while (true) { System.out.printf("Counter: %d%n", viewModel.getCounterValue()); System.out.print("Enter command...
Click to read more »Idempotence
Rabu, 2026-08-12 04:09:00(5, 5), so the sequence is not idempotent. int x = 3; void inspect() { printf("%d\n", x); } void change() { x = 5; } void sequence() { inspect(); change();...
Click to read more »C localization functions
Kamis, 2026-04-23 02:12:13programs that use more than one locale. The functions alter the behavior of printf, scanf, strtod and other functions which are often used to write saved data...
Click to read more »Comma operator
Jumat, 2026-05-08 20:52:33example: for (int i = 0; i <= 9; i++) { assert(("i is too big!", i <= 4)); printf("i = %i\n", i); } The comma can be used within a condition (of an if, while...
Click to read more »Option type
Selasa, 2026-07-07 20:46:44Optional<Integer> empty = Optional.empty(); System.out.printf("showValue(full): %s\n", showValue(full)); System.out.printf("showValue(empty): %s\n", showValue(empty));...
Click to read more »Infolepsy
Jumat, 2026-08-21 21:28:23station KROQ-FM). Punishing2004 is a remix of Punishing The Atoms from printf("shiver in eternal darkness/n");. The EP was reissued on May 26, 2013, as...
Click to read more »Lex (software)
Rabu, 2026-04-15 15:57:50digits */ [0-9]+ { /* yytext is a string containing the matched text. */ printf("Saw an integer: %s\n", yytext); } .|\n { /* Ignore all other characters...
Click to read more »Network socket
Selasa, 2026-08-11 04:54:20out.printf("An error occurred while accessing the socket: %s%n", e.getMessage()); e.printStackTrace(); } catch (IOException e) { System.out.printf("An...
Click to read more »Tagged union
Minggu, 2026-08-02 11:51:54switch (x) { case { .i = i }: printf("%d", i); break; case { .d = d }: printf("%g", d); break; case { .s = s }: printf("%s", s); break; } } D provides...
Click to read more »Pax (command)
Selasa, 2026-08-04 04:15:23current directory: $ printf '.' | pax -w > archive.tar $ pax -w . > archive.tar Copy current directory tree to another location: $ printf '.' | pax -w > archive...
Click to read more »Diff
Sabtu, 2026-08-01 16:14:04containing a w (write) command, and one containing a q (quit) command (e.g. by printf "w\nq\n" >> mydiff). Here we give the diff file the name mydiff and the...
Click to read more »Red (programming language)
Rabu, 2026-06-03 20:38:31example, one would write if x > y [print "Hello"] instead of if (x > y) {printf("Hello\n");}. Red is a homoiconic language, which is capable of metaprogramming...
Click to read more »C29 (C standard revision)
Sabtu, 2026-08-22 22:42:56hopefully encourage rewrites. As of N3353, there will be no changes to printf(), but WG14 would like to see a future paper that propose changes. Remove...
Click to read more »Romberg's method
Minggu, 2026-07-12 03:41:21print_row(size_t i, double *R) { printf("R[%2zu] = ", i); for (size_t j = 0; j <= i; ++j) { printf("%f ", R[j]); } printf("\n"); } /* INPUT: (*f) : pointer...
Click to read more »Thread pool
Selasa, 2025-12-09 04:51:39txt" "https://example.com/file4.txt" "https://example.com/file5.txt" ) printf '%s\n' "${urls[@]}" | xargs -P 5 -I {} curl -sI {} | grep -i "content-length:"...
Click to read more »Concepts (C++)
Kamis, 2026-08-13 09:00:53used static void render(Drawable shape) { // ... shape.draw(); System.out.printf("Drew shape with area %f", shape.area()); } C++ concepts resemble Go interfaces...
Click to read more »Gdbserver
Selasa, 2026-08-11 05:34:07SIGSEGV, Segmentation fault. 0x08048414 in main () at hello_world.c:10 10 printf("x[%d] = %g\n", i, x[i]); (gdb) Another technique for debugging programs...
Click to read more »Java Database Connectivity
Jumat, 2026-07-24 21:09:26the Sun documentation // for the list of valid conversions. System.out.printf("COLUMN %d = %s%n", i, rs.getObject(i)); } } } The following code is an...
Click to read more »International Obfuscated C Code Contest
Sabtu, 2026-06-13 05:37:011)){ e=~e; puts (O+(v,0)> 1e4?e?90:82:96)); break ; } _ 1<L&e) { d=v,2+L); printf (O+114,h%10+64,58-h/10,y%10+64 ,58 -y/10,d); } else{ putchar (62 ) ; h=...
Click to read more »Bionic (software)
Kamis, 2026-08-27 22:33:48do not conform to the POSIX or C standards for security reasons, such as printf which does not support the %n format string. Many of the most-used GNU extensions...
Click to read more »Parallel array
Selasa, 2026-03-31 08:38:06/*Tom*/, 1 /*Mike*/, 0 /*None*/, 3 /*Tom*/}; for (i = 1; i <= 4; i++) { printf("Name: %s, Age: %d, Parent: %s \n", names[i], ages[i], names[parent[i]]);...
Click to read more »Setcontext
Sabtu, 2025-11-08 03:44:52the swapcontext in loop. */ swapcontext(&main_context2, &loop_context); printf("%d\n", i_from_iterator); } } return 0; } NOTE: this example is not correct...
Click to read more »Watcom C/C++
Senin, 2026-03-30 16:55:22(Annex K)" in C11. Some function name examples are strcpy_s(), memcpy_s(), printf_s(). This library was released along with Open Watcom 1.5 in April 2006...
Click to read more »Sigaction
Senin, 2026-05-11 18:28:20printf() is not signal-safe! // don't use it in a signal handler. // si_code is the full 32 bit exit code from the child (see also waitid()). printf("sinfo->si_pid...
Click to read more »Memory barrier
Kamis, 2026-07-09 21:38:01#1 Core #1: while (f == 0) { continue; } // Memory fence required here printf("%d", x); Thread #2 Core #2: x = 42; // Memory fence required here f = 1;...
Click to read more »Escape sequence
Senin, 2026-07-27 13:59:15Format (Common Lisp) – Common Lisp function that produces formatted text printf format string – C function to format and output textPages displaying short...
Click to read more »IIf
Sabtu, 2025-07-19 23:29:12Result; IIf in C (and its variants) and Perl is the ?: conditional operator: printf("number %d is%s even", num, num % 2 ? " not" : ""); IIf in Python: parity...
Click to read more »Microsoft-specific exception handling mechanisms
Selasa, 2026-07-07 07:06:37nop nop nop nop nop nop } printf("Past the exception.\n"); } __except (filterExpression(GetExceptionInformation())) { printf("Handler called.\n"); } return...
Click to read more »Java compiler
Selasa, 2025-10-21 20:54:42"); } int result = compiler.run(null, null, null, sourceFile); System.out.printf("Compilation result: %s%n", result == 0 ? "Success" : "Failure"); } } List...
Click to read more »Silverfrost FTN95
Senin, 2026-03-23 22:44:34a set of format codes and call-backs. The format codes resemble C style printf codes. ClearWin+ is used to power the UI for Simfit. From FTN95 version...
Click to read more »Project Valhalla (Java language)
Minggu, 2026-08-16 08:10:41intList = new ArrayList<>(); intList.add(10); intList.add(20); System.out.printf("Integer List: %s%n", intList); // List<double> instead of List<Double>...
Click to read more »Uninitialized variable
Jumat, 2026-07-03 15:40:27C: void count(void) { int k; for (int i = 0; i < 10; i++) { k = k + 1; } printf("%d", k); } The final value of k is undefined. The answer that it must be...
Click to read more »Nemerle
Sabtu, 2026-07-18 13:17:13=> printf("a\n"); | @"(?<num : int>\d+)-\w+" => printf("%d\n", num + 3); | "(?<name>(Ala|Kasia))? ma kota" => match (name) { | Some (n) => printf("%s\n"...
Click to read more »Polytope model
Jumat, 2026-06-19 02:24:25+ a[i][j - 1]; } } for (i = 0; i < n; i++) { for (j = 0; j < n; ++j) { printf("%4d ", a[i][j]); } puts(""); } The essential problem with this code is...
Click to read more »Iterator
Selasa, 2026-04-21 14:06:43list_begin(head); ; ) { int* val = list_next(&it); if (!val) { break; } printf("%d\n", *val); } } The C++ language makes wide use of iterators in its Standard...
Click to read more »LLVM
Sabtu, 2026-07-18 14:28:41@.str = internal constant [14 x i8] c"Hello, world\0A\00" declare i32 @printf(ptr, ...) define i32 @main(i32 %argc, ptr %argv) nounwind { entry: %tmp1...
Click to read more »Recursion (computer science)
Selasa, 2026-06-30 16:11:31these two functions: #include <stdio.h> void recursiveFunction(int num) { printf("%d\n", num); if (num < 4) { recursiveFunction(num + 1); } } #include <stdio...
Click to read more »Shell script
Senin, 2026-08-17 21:49:00before the missing features are used, for example: #!/bin/bash die() { printf '%s\n' "$1" >&2; exit 1; } if [ "$BASH_VERSINFO" -lt 4 ]; then die "Not...
Click to read more »Signal (IPC)
Selasa, 2026-06-02 06:11:18process attribute changes. Use of non-reentrant functions, e.g., malloc or printf, inside signal handlers is also unsafe. In particular, the POSIX specification...
Click to read more »Adaptive Simpson's method
Senin, 2026-05-04 20:13:143); printf("integrate(sinf, 0, 2) = %lf\n", I); // print the result perror("adaptiveSimpsons"); // Was it successful? (depth=1 is too shallow) printf("(%d...
Click to read more »Crout matrix decomposition
Jumat, 2024-09-06 00:32:07= 0; k < j; k++) { sum = sum + L[j][k] * U[k][i]; } if (L[j][j] == 0) { printf("det(L) close to 0!\n Can't divide by 0...\n"); exit(EXIT_FAILURE); } U[j][i]...
Click to read more »Low-level programming language
Minggu, 2026-06-07 13:03:40int dst; asm ("mov %1, %0\n\t" "add $1, %0" : "=r" (dst) : "r" (src)); printf("%d\n", dst); "Generation of Programming Languages". GeeksforGeeks. 2017-10-22...
Click to read more »Generics in Java
Kamis, 2026-08-27 09:21:48new Entry<String, Integer>("Mike", 100); System.out.printf("grade: %s%n", grade); System.out.printf("mark: %s%n", mark); Entry<Integer, Boolean> prime...
Click to read more »Observer pattern
Kamis, 2026-02-19 02:39:16eventSource = new EventSource(); eventSource.addObserver(event -> System.out.printf("Received response: %s%n", event)); eventSource.scanSystemIn(); } } C# provides...
Click to read more »Programming by permutation
Senin, 2025-09-08 10:31:02(isdigit(buffer[i])) { destination[j++] = buffer[i++]; } ++i; } destination[j] = '\0'; printf("%s\n", destination); } First of all, it doesn't give the right answer....
Click to read more »Weak reference
Senin, 2026-05-25 05:23:44WeakReference r = new WeakReference("I'm here"); String s = "I'm here"; System.out.printf("Before gc: r=%s, static=%s%n", r.get(), s); System.gc(); // assume GC is...
Click to read more »Forward declaration
Sabtu, 2026-07-04 22:19:06definition, which must be unique, in another): void printThisInteger(int x) { printf("%d\n", x); } Variables may have only forward declaration and lack definition...
Click to read more »Branch table
Selasa, 2026-05-05 05:47:55func3 (void) { printf( "3\n" ); } void func2 (void) { printf( "2\n" ); } void func1 (void) { printf( "1\n" ); } void func0 (void) { printf( "0\n" ); } Handler...
Click to read more »Type system
Minggu, 2026-08-23 16:44:52consider a similar example in C: int x = 5; char y[] = "37"; char* z = x + y; printf("%c\n", *z); In this example z will point to a memory address five characters...
Click to read more »Selenium (software)
Rabu, 2026-08-26 06:17:09getAttribute("textContent")); driver.quit(); } catch (Exception e) { System.err.printf("Error caught: %s%n", e.getMessage()); } } } namespace Wikipedia.Examples;...
Click to read more »Rodos (operating system)
Kamis, 2026-04-16 04:41:23#include "rodos.h" class HelloWorld : public StaticThread<> { void run(){ PRINTF("Hello World!\n"); } } helloworld; The class Thread is extended by a custom...
Click to read more »Deep Blue C
Kamis, 2024-11-28 11:25:33The user must supply a source code editor, but included libraries provide printf and other I/O routines and video graphics, including player/missile graphics...
Click to read more »Segmentation fault
Kamis, 2026-05-14 00:17:35assume that any pointer that is dereferenced is not null. int* ptr = NULL; printf("%d", *ptr); This sample code creates a null pointer, and then tries to...
Click to read more »Halstead complexity measures
Kamis, 2024-01-04 22:48:02(a+b+c)/3; printf("avg = %d", avg); } The distinct operators ( η 1 {\displaystyle \,\eta _{1}} ) are: main, (), {}, int, scanf, &, =, +, /, printf, ,, ; The...
Click to read more »C shell
Minggu, 2026-08-23 13:49:29left int i = 10 / 5 * 2; printf( "%d\n", i ); // prints 4 i = 7 - 4 + 2; printf( "%d\n", i ); // prints 5 i = 2 >> 1 << 4; printf( "%d\n", i ); // prints...
Click to read more »Page (computer memory)
Senin, 2025-10-13 18:15:24#include <stdio.h> #include <unistd.h> /* sysconf(3) */ int main(void) { printf("The page size for this system is %ld bytes.\n", sysconf(_SC_PAGESIZE));...
Click to read more »Windows Native API
Kamis, 2026-07-30 20:08:48sprintf(), memcpy() and floor(). Other common procedures like malloc(), printf(), scanf() are missing (the first because it does not specify a heap to...
Click to read more »Destructor (computer programming)
Selasa, 2026-07-21 18:11:08dummy data } printf("First 10 bytes of resource data: "); for (size_t i = 0; i < 10; ++i) { printf("%d ", ((char*)myResource->data)[i]); } printf("\n"); //...
Click to read more »Stride of an array
Senin, 2025-06-23 17:10:53*arr, int length, size_t stride) { int i; printf("Address\t\tValue\n"); for (i=0; i < length; ++i) { printf("%p\t%d\n", arr, arr[0]); arr = (int *)((unsigned...
Click to read more »JGroups
Selasa, 2026-06-23 03:59:53viewAccepted(View view) { System.out.printf("** view: %s\n", view); } public void receive(Message msg) { System.out.printf("from %s: %s\n", msg.getSource()...
Click to read more »Fold (Unix)
Selasa, 2026-02-03 12:03:03fold(1) – FreeBSD General Commands Manual "fold.c – 1BSD". minnie.tuhs.org. printf – Shell and Utilities Reference, The Single UNIX Specification, Version...
Click to read more »Racket features
Sabtu, 2026-08-15 22:04:41iterate over the current tree (when (regexp-match? #rx"[.]rkt$" path) (printf "source file: ~a\n" path))) The next example uses a hash table to record...
Click to read more »Flowchart
Rabu, 2026-08-26 18:18:11Flow diagram a C-style for loop, representing the following code: for (i = 0; i < 5; i++) printf("*"); The loop will cause five asterisks to be printed....
Click to read more »Mixin
Senin, 2026-08-24 02:25:19LoggerMixin { default void log(String fmt, Object... args) { System.out.printf("[LOG]: %s", String.format(fmt, args)); } } interface TimestampMixin { default...
Click to read more »Closure (computer programming)
Rabu, 2026-08-26 19:03:03pointer pointing on itself } int main(void) { FnIntToInt add10 = adder(10); printf("%d\n", add10(1)); return 0; } But moving adder (and, optionally, the typedef)...
Click to read more »Guard digit
Kamis, 2024-07-04 12:31:46a; int i; a = 0.2; a += 0.1; a -= 0.3; for (i = 0; a < 1.0; i++) a += a; printf("i=%d, a=%f\n", i, a); return 0; } It appears that the program should not...
Click to read more »Bell character
Minggu, 2026-02-01 10:00:00type Ctrl+V first to "quote" the ^G. On POSIX systems, one may also use: printf '\a' and in the Bash shell, one may use ANSI-C quoting: echo $'\a' An alternative...
Click to read more »BusyBox
Rabu, 2026-08-19 22:24:01packets to network hosts pipe_progress pivot_root pkill popmaildir printenv printf ps — Report process status pscan pwd — Print working directory raidautorun...
Click to read more »Type conversion
Jumat, 2026-06-05 13:23:5816777217; float my_float = 16777216.0; printf("The integer is: %d\n", my_int); printf("The float is: %f\n", my_float); printf("Their equality: %d\n", my_int ==...
Click to read more »Lexicographic code
Senin, 2025-12-22 00:50:43-1) { // Add new lexicode for (k=0; k < N; k++) // & print it printf("%d", (i>>k)&1); printf(" : %d\n", j); z[j++] = i; } } } The theory of lexicographic...
Click to read more »Usage message
Minggu, 2026-05-03 13:00:27usage statement in a shell script, one might write: case "$arg" in ... h) printf 'Usage: %s parameter1 parameter2 ...\n' "$(basename "$0")" exit 0 ;; .....
Click to read more »Byte Sieve
Selasa, 2025-04-15 02:15:02sizepl 8191 char flags[sizepl]; main() { int i, prime, k, count, iter; printf("10 iterations\n"); for (iter = 1; iter <= 10; iter ++) { count=0; for (i...
Click to read more »Variadic template
Selasa, 2026-07-14 13:40:43type-safe add-on to variadic functions (such as printf()), but also allowing a function called with printf-like syntax to process non-trivial objects. using...
Click to read more »Manifest typing
Kamis, 2026-06-18 01:12:32h> int main(void) { char s[] = "Test String"; float x = 0.0f; int y = 0; printf("Hello, World!\n"); return 0; } The variables s, x, and y were declared...
Click to read more »Character Generator Protocol
Kamis, 2025-08-14 03:27:21script can be stopped by pressing Ctrl+C. strg=""; for n in {32..126}; do c=`printf '%x' $n | xxd -r -p`; strg=${strg}${c}; done; strg=${strg}${strg}; n=0;...
Click to read more »Qshell
Sabtu, 2025-03-29 18:20:59mkdir mkfifo mv native2ascii nohup od pax policytool pr print printenv printf profconv profdb profp ps pwd pwdx qsh read readonly return rexec rexx Rfile...
Click to read more »Undefined behavior
Rabu, 2026-08-26 02:16:41be stored is also undefined behavior. a[i] = i++; // undefined behavior printf("%d %d\n", ++n, pow(2, n)); // also undefined behavior In C/C++ bitwise...
Click to read more »Stack-oriented programming
Minggu, 2026-03-22 02:43:13performs the near equivalent in C: if (2 > 3) { printf("2 is greater than three\n"); } else { printf("2 is not greater than three\n"); } Looping and other...
Click to read more »Manual memory management
Kamis, 2026-07-23 13:48:55return -1; } defer { printf("Closing file.\n"); fclose(f); }; char* buffer = malloc(1024); if (!buffer) { return -2; } defer { printf("Freeing buffer.\n");...
Click to read more »Decorator pattern
Jumat, 2026-02-27 13:59:32public class Main { public static void printInfo(Coffee c) { System.out.printf("Cost: %s; Ingredients: %s%n", c.getCost(), c.getIngredients()); } public...
Click to read more »Programming style
Kamis, 2026-07-23 23:51:44in whitespace. int i; for(i=0;i<10;++i){ printf("%d",i*i+i); } versus int i; for (i = 0; i < 10; ++i) { printf("%d", i * i + i); } The use of tabs for...
Click to read more »Memento pattern
Selasa, 2026-04-14 06:37:49memento.. public void set(String state) { this.state = state; System.out.printf("Originator: Setting state to %s%n", state); } public Memento saveToMemento()...
Click to read more »Visitor pattern
Selasa, 2026-02-10 03:24:37println("Starting my car"); } @Override public void visit(Wheel wheel) { System.out.printf("Kicking my %s wheel%n", wheel.getName()); } @Override public void visit(Engine...
Click to read more »GNU Multiple Precision Arithmetic Library
Kamis, 2026-03-19 11:59:37provides additional utilities (all prefixed with gmp), such as gmp_scanf, gmp_printf, etc. Here is an example of C code showing the use of the GMP library to...
Click to read more »GNU Scientific Library
Rabu, 2026-06-10 20:38:08<gsl/gsl_sf_bessel.h> int main(void) { double x = 5.0; double y = gsl_sf_bessel_J0(x); printf("J0(%g) = %.18e\n", x, y); return 0; } The example program has to be linked...
Click to read more »Offsetof
Jumat, 2026-07-31 14:29:06struct MyStruct* element = CONTAINER_OF(current, struct MyStruct, list); printf("%s\n", element->name); current = listNext(&element->list); } The Linux...
Click to read more »Turing completeness
Jumat, 2026-08-21 02:11:03games Social media: Habbo Hotel Computational languages: C++ templates printf format string TypeScript's type system x86 assembly's MOV instruction TrueType...
Click to read more »Automata-based programming
Jumat, 2025-03-28 01:33:18compiling and running the above program on this input: $ clang program.c && (printf "\t\v\f\r \n\n\t\v\f\r foo bar baz\n\n\t\v\f\r qux quux corge" | ./a.out)...
Click to read more »Promela
Kamis, 2025-10-09 16:14:19goto hidden if inline init int len mtype empty never nfull od of pc_value printf priority prototype provided run short skip timeout typedef unless unsigned...
Click to read more »Typeof
Sabtu, 2026-07-18 08:50:25Class<Integer> intClass = int.class; Object obj = /* something here */; System.out.printf("The class of %s is %s%n", obj, obj.getClass().getName()); The typeof operator...
Click to read more »Leaning toothpick syndrome
Kamis, 2026-05-07 08:25:59'<a href="$url">$text</a>' Using the printf function is a viable solution in many languages (Perl, PHP): printf('<a href="%s">%s</a>', $url, $text); The...
Click to read more »LLU
Minggu, 2020-03-01 23:45:35long unsigned, an integer data type, used in programming e.g. within a printf statement ("%llu") This disambiguation page lists articles associated with...
Click to read more »Java annotation
Senin, 2026-07-06 11:59:18(TypeHeader) singleAnnotation; System.out.printf("Developer: %s%n", header.developer()); System.out.printf("Last Modified: %s%n", header.lastModified());...
Click to read more »Magic (programming)
Sabtu, 2026-01-31 15:12:46variable @% control print formatting, it accepts direct assignment of ANSI printf format strings, normally a type mismatch error. In JavaScript, evaluation...
Click to read more »Lazy initialization
Jumat, 2025-11-07 07:55:17argc; i++) { if (f = getFruit(argv[i])) { printf("Fruit %s: number %d\n", argv[i], f->number); } } printf("The following fruits have been generated:\n");...
Click to read more »Parsing
Selasa, 2026-07-07 14:32:23applied to different domains, but often appear together, such as the scanf/printf pair, or the input (front end parsing) and output (back end code generation)...
Click to read more »Resident monitor
Jumat, 2026-04-03 21:31:08memory, for example. In many cases resident monitors can be a step up from printf debugging and are very helpful when developing on a budget that does not...
Click to read more »JoCaml
Rabu, 2025-01-08 14:12:39Tea -> put("Tea") ;; (* give: drink Join.chan *) def refund(v) = let s = Printf.sprintf "Refund %d" v in put(s) ;; (* refund: int Join.chan *) let new_vending...
Click to read more »GNU MathProg
Selasa, 2026-07-28 10:36:39code printf "The optimal production per day is:\n"; printf " %.1f pallets of product A,\n",x1; printf " %.1f pallets of product B \n",x2; printf "This...
Click to read more »Modules (C++)
Jumat, 2026-08-07 04:11:20int main(int argc, char* argv[]) { if (argc > 1) { printf("Hello, %s!\n", argv[1]); } else { printf("Hello, world!\n"); } return 0; } Clang C modules can...
Click to read more »Binary Modular Dataflow Machine
Sabtu, 2026-08-08 09:18:56foo1(i+1); (setq b (++ b)) # b++; (outf "a = %d\n" a) # printf("a = %d\n", a); (outf "b = %d\n" b) # printf("b = %d\n", b); The two first statements are independent...
Click to read more »Producer–consumer problem
Jumat, 2026-08-21 07:31:27Millisecond) sendMsg++ fmt.Printf("sendMsg = %v\n", sendMsg) return sendMsg } func consumeMessage(recvMsg int) { fmt.Printf("\t\trecvMsg = %v\n", recvMsg)...
Click to read more »Berkeley sockets
Senin, 2026-08-10 19:08:19"%s\n", strerror(errno)); return EXIT_FAILURE; } printf("recsize: %d\n ", (int)recsize); sleep(1); printf("datagram: %.*s\n", (int)recsize, buffer); } }...
Click to read more »Loop (statement)
Jumat, 2026-08-21 03:05:09loop that prints the numbers from 0 to 4. for (int i = 0; i < 5; i++) { printf("%d\n", i); } Assuming there is a properly declared function or method called...
Click to read more »RTLinux
Kamis, 2026-07-16 02:22:41¶m); pthread_create(&t1, &attr, &thread_code, "this is thread 1"); rtl_printf("Thread 1 started\n"); /* ... */ } The output the program is as follows...
Click to read more »PRINT (BASIC), the BASIC command mainly for outputting text on the screen printf, C function that formats and outputs text Printing (gun law), when the shape...
Click to read more »Virtual function
Selasa, 2026-05-05 01:16:24function, it's not in the structure above. */ void move(const Animal* self) { printf("<Animal at %p> moved in some way\n", (void*)(self)); } /* unlike move,...
Click to read more »ALGOL 68
Sabtu, 2026-08-01 12:17:08(functions), with FORMATs embedded between two $ characters. Examples: printf (($2l"The sum is:"x, g(0)$, m + n)); ¢ prints the same as: ¢ print ((new...
Click to read more »Charm++
Selasa, 2025-07-29 16:53:59Hello::sayHi(int from) { // Have this chare object say hello to the user. CkPrintf("Hello from chare # %d on processor %d (told by %d)\n", thisIndex, CkMyPe()...
Click to read more »Pollard's rho algorithm for logarithms
Kamis, 2026-07-09 02:17:531; i < n; ++i) { new_xab(x, a, b); new_xab(X, A, B); new_xab(X, A, B); printf("%3d %4d %3d %3d %4d %3d %3d\n", i, x, a, b, X, A, B); if (x == X) break;...
Click to read more »Function composition (computer science)
Kamis, 2026-01-22 08:30:043 = 11 FXN *arr[] = {f, g, h}; printf("%d\n", eval(arr, 3, 6)); // ((6 - 3) * 2) + 1 = 7 arr[2] = f; arr[0] = h; printf("%d\n", eval(arr, 3, 6)); } In...
Click to read more »Compatibility of C and C++
Minggu, 2026-08-09 22:55:40in the following C99 code: void fn(void) { goto flack; int i = 1; flack: printf("Reached flack"); } While syntactically valid, a longjmp() results in undefined...
Click to read more »Template processor
Senin, 2026-08-03 19:23:34template processors, but may contain some logic. Simple examples include ‘printf’ print format strings, found in many programming languages, and snippets...
Click to read more »Nicholas Carlini
Selasa, 2026-07-07 08:06:56the 2020 IOCCC for implementing a tic-tac-toe game entirely with calls to printf, expanding on work from a research paper of his from 2015. The judges commented...
Click to read more »GNU Core Utilities
Minggu, 2026-08-16 09:37:04lightweight version of finger printenv – Reports environment variables printf – Formats text pwd – Reports the current working directory readlink – Reports...
Click to read more »C99
Jumat, 2026-04-24 19:56:13TEST_NUMERIC_STABILITY_DOWN fesetround(FE_DOWNWARD); #endif printf("%.7g\n", compute_fn(3.0)); printf("%.7g\n", compute_fn(NAN)); return 0; } Footnotes: Compile...
Click to read more »Synchronet
Senin, 2025-12-22 05:17:57which provides such features as threading, .ini file parsing, consistent *printf() functions, and other small utility functions to the rest of the project...
Click to read more »Sum (Unix)
Sabtu, 2023-01-07 16:36:11testfile 510 1 testfile Example of using standard input, -r and printf to avoid newline: $ printf Hello | sum -r 08401 1 GNU Core Utilities UnxUtils port to...
Click to read more »Exception handling (programming)
Sabtu, 2026-08-22 21:05:11new IOException("The line read from console was empty!"); } System.out.printf("Hello %s!%n", line); System.out.println("The task executed successfully...
Click to read more »Bridge pattern
Selasa, 2026-05-05 18:30:15return message -> System.out.printf("info: %s%n", message); } static Logger warning() { return message -> System.out.printf("warning: %s%n", message); }...
Click to read more »Windows software trace preprocessor
Sabtu, 2026-07-04 02:17:32macro that converts the line number (__LINE__) to a string and DebugPrintf is a printf-like function that might for example output text to the debugger....
Click to read more »Generator (computer programming)
Senin, 2026-07-27 02:18:5020)]) (printf "i = ~s\n" i)) and these sequences are also first-class values: (define 10-to-20 (in-range 10 20)) (for ([i 10-to-20]) (printf "i = ~s\n"...
Click to read more »Stack buffer overflow
Selasa, 2026-05-12 19:13:43Addr = 0x0023FF4C char c[28]; // Addr = 0x0023FF30 // Will print 10.500000 printf("myFloat value = %f\n", myFloat); /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
Click to read more »Tcov
Jumat, 2026-04-03 21:17:01for (i = 1; i < 10; i++) { if (i % 3 == 0) printf ("%d is divisible by 3\n", i); if (i % 11 == 0) printf ("%d is divisible by 11\n", i); } return 0;...
Click to read more »Julia (programming language)
Minggu, 2026-08-23 23:45:08concatenate strings. Julia has the println and print functions, but also a @printf macro (i.e., not in function form) to eliminate run-time overhead of formatting...
Click to read more »Variable-length array
Sabtu, 2025-12-13 13:35:17createArray(size); System.out.printf("int[] of size %d created", size); } catch (NumberFormatException e) { System.err.printf("Invalid integer read: %s%n"...
Click to read more »Hooking
Sabtu, 2026-08-15 19:40:56hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType) { //Our fake function printf("The String Sent to MessageBoxA Was : %s\n", lpText); return RealMessageBoxA(hWnd...
Click to read more »DTrace
Kamis, 2026-03-12 22:52:02}' # Files opened by process dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }' # Syscall count by program dtrace...
Click to read more »MySQLi
Rabu, 2026-03-18 13:35:24WHERE id = 1"); $row = $res->fetch_assoc(); printf("id = %s (%s)\n", $row['id'], gettype($row['id'])); printf("label = %s (%s)\n", $row['label'], gettype($row['label']));...
Click to read more »Mediator pattern
Selasa, 2026-05-05 02:49:04getValue("Alice").ifPresent(age -> System.out.printf("Age for Alice: %d\n", age)); mediator.addObserver("Bob", () -> { System.out.printf("New age for Bob: %s\n", mediator...
Click to read more »Newline
Sabtu, 2026-08-22 04:03:36automatically inserted when using the format specifier %n in System.out::printf. Example: String eol = System.lineSeparator(); String lineColor = "Color:...
Click to read more »Visual J++
Selasa, 2026-08-04 22:19:07String productName = key.getStringValue("ProductName"); System.out.printf("Product Name: %s%n", productName); } } The Windows Foundation Classes (WFC)...
Click to read more »Type signature
Sabtu, 2026-06-27 09:07:02possible to have variadic parameters, but these are not type-safe. int printf(const char* fmt, ...); Manipulation of these parameters can be done by using...
Click to read more »Camlp4
Rabu, 2025-12-24 01:53:18invalid_arg "fac" let run n = let result = fac n in let count = !counter in Printf.printf "%i! = %i number of multiplications so far = %i\n" n result count let...
Click to read more »Rounding
Senin, 2026-08-03 17:13:03from 4321.5678 to 4321.57 or 4300). In addition, many languages provide a printf or similar string formatting function, which allows one to convert a fractional...
Click to read more »Compatible Time-Sharing System
Kamis, 2026-06-11 00:47:18logout, input, edit, fap, mad, madtrn, load, use, start, skippm, listf, printf, xdump and xundump. This became the initial version of the Compatible Time-Sharing...
Click to read more »Lis (linear algebra library)
Kamis, 2026-03-12 17:22:22&iter); lis_solver_get_time(solver, &time); printf("number of iterations = %d\n", iter); printf("elapsed time = %e\n", time); lis_output_vector(x...
Click to read more »Comparison of Unicode encodings
Minggu, 2026-07-26 05:00:13UTF-8-encoded files, even if they contain non-ASCII characters. For instance, the C printf function can print a UTF-8 string because it only looks for the ASCII '%'...
Click to read more »Code Composer Studio
Kamis, 2026-08-27 16:35:19Graph) while keeping support for DSP/BIOS legacy debug components (RTA, LOG_Printf). Supports Windows XP, Vista and 7. Release 4.2 introduced the Grace plug-in...
Click to read more »Label (computer science)
Minggu, 2025-09-07 07:35:42switch (die) { default: printf("invalid\n"); break; case 1: case 3: case 5: printf("odd\n"); break; case 2: case 4: case 6: printf("even\n"); break; } Within...
Click to read more »Modern C++ Design
Selasa, 2026-03-31 02:01:02book anymore as it already has a lot of new components (e.g. StrongPtr, Printf, and Scopeguard). Loki inspired similar tools and functionality now also...
Click to read more »Boehm garbage collector
Senin, 2026-03-23 17:47:00assert(*p == NULL); *p = GC_REALLOC(q, 2 * sizeof(*p)); if (i == SIZE - 1) { printf("Heap size = %zu\n", GC_get_heap_size()); } } return 0; } For completeness...
Click to read more »D (programming language)
Rabu, 2026-08-05 01:14:24enum factorial9 = factorial(9); The std.string.format function performs printf-like data formatting (also at compile-time, through CTFE), and the "msg"...
Click to read more »Static variable
Kamis, 2026-07-30 11:17:10incremented five times after these calls. The final value of x // will be 5. x++; printf("%d\n", x); // outputs the value of x } int main() { func(); // prints 1...
Click to read more »Computer engineering compendium
Sabtu, 2026-05-09 20:07:21philosophies Programming language generations Comparison of programming languages Printf format string Programming paradigm Object-oriented design Software documentation...
Click to read more »Busy waiting
Kamis, 2026-05-28 02:06:29local; while ((local = i.get()) == 0) { // Busy-wait (spinlock) } System.out.printf("i's value has changed to %d.%n", local); }); // Thread f2: changes i after...
Click to read more »Value change dump
Senin, 2025-08-11 11:06:28variables is denoted by letter 'r' or 'R' followed by the data using %.16g printf() format followed by space and then the variable identifier. $date Date...
Click to read more »Nim (programming language)
Selasa, 2026-06-16 14:17:33directly in Nim. proc printf(formatstr: cstring) {.header: "<stdio.h>", varargs.} printf("%s %d\n", "foo", 5) In this code the printf function is imported...
Click to read more »Financial Information eXchange
Selasa, 2026-03-31 12:37:46{ const struct Message *msg = (const struct Message*) incoming_message; printf("Traded %u of %s\n", msg->qty, msg->symbol); ... } FIX Trading Community...
Click to read more »Flex (lexical analyzer generator)
Minggu, 2026-01-18 09:09:35num = atoi(yytext); return NUMBER; } [ \t\n\r] /* skip whitespace */ . { printf("Unknown character [%c]\n",yytext[0]); return UNKNOWN; } %% int yywrap(void){return...
Click to read more »Mruby
Kamis, 2026-06-11 19:36:28*mrb = mrb_open(); char code[] = "5.times { puts 'mruby is awesome!' }"; printf("Executing Ruby code with mruby:\n"); mrb_load_string(mrb, code); mrb_close(mrb);...
Click to read more »Pointer (computer programming)
Selasa, 2026-08-18 00:45:44pointer, yielding the object it points to, an asterisk (*) can be used: printf("%d\n", *ptr); // Prints: 5 There are two styles of declarations of a pointer-to-int...
Click to read more »Noweb
Selasa, 2026-07-14 15:38:20/* <<license>> */ #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello World!\n"); return 0; } @ \noindent \ldots then I did the same in...
Click to read more »JavaBeans
Sabtu, 2026-05-30 07:08:16setList(new ArrayList<String>()); // Output: "Bob is [alive]" System.out.printf("%s is %s%n", person.getName(), person.isDeceased() ? " [deceased]" : "...
Click to read more »Jackson structured programming
Rabu, 2026-07-01 06:34:25out.printf("%s %d%n", firstLineOfGroup, count); } count = 0; firstLineOfGroup = line; } count++; } if (firstLineOfGroup != null) { System.out.printf("%s...
Click to read more »ProbeVue
Jumat, 2026-04-03 07:14:13system call. When that event happens this script will call the built-in printf() function to print a message to its output trace buffers. The first line...
Click to read more »SocketCAN
Rabu, 2025-11-05 16:28:41SIOCGIFINDEX, &ifr); addr.can_family = AF_CAN; addr.can_ifindex = ifr.ifr_ifindex; printf("%s at index %d\n", ifname, ifr.ifr_ifindex); if (bind(s, (struct sockaddr...
Click to read more »Uniform binary search
Sabtu, 2025-10-18 02:21:556, 7, 9, 14, 15, 17, 19}; make_delta(N); for (int i = 0; i < 20; ++i) printf("%d is at index %d\n", i, unisearch(a, i)); return 0; } Knuth, Donald E...
Click to read more »Here document
Selasa, 2026-02-10 22:33:45be used normally in contexts where normal strings would: #lang racket (printf #<<END Dear ~a, Thanks for the insightful conversation ~a. ~a END "Isaac"...
Click to read more »Secondary notation
Minggu, 2025-12-14 18:21:19ease the interpretation of the formal notation: int main(){while(true){printf("I'm stuck in an infinite loop!");}} The following is the same code, but...
Click to read more »Message Passing Interface
Kamis, 2026-05-28 18:39:53distinguish the roles of the programs */ if (my_rank == 0) { int other_rank; printf("We have %i processes.\n", num_procs); /* Send messages to all other processes...
Click to read more »XCB
Rabu, 2026-08-26 06:38:15= xcb_connect(NULL, NULL); if (xcb_connection_has_error(connection)) { printf("Cannot open display\n"); exit(EXIT_FAILURE); } // get the first screen...
Click to read more »Breakpoint
Sabtu, 2026-05-16 08:46:04putting logging statements into the program being debugged (sometimes called printf debugging), and particularly helpful when changing the program is not practical...
Click to read more »OpenHMPP
Kamis, 2025-09-18 11:18:26This includes the use of libraries and system functions such as malloc, printf, ... Every function call must refer to a static pure function (no function...
Click to read more »Syntax (programming languages)
Senin, 2026-06-29 05:25:08sqrt (p->real * p->real + p->im * p->im); As a simpler example, int x; printf("%d", x); is syntactically valid, but not semantically defined, as it uses...
Click to read more »%d
Jumat, 2024-04-12 21:31:00%d may refer to: %d, in printf format string %d, in scanf format string %d, day of the month in the strftime format string This disambiguation page lists...
Click to read more »CPU time
Jumat, 2026-02-20 00:54:10strtoul(argv[1], NULL, 10), n = argument; while (!isPrimeNumber(++n)); printf("Prime number greater than %lu is %lu\n", argument, n); return 0; } Modern...
Click to read more »Getaddrinfo
Jumat, 2026-02-20 11:39:49ai->ai_addrlen, hostname, sizeof(hostname), NULL, 0, 0); switch (gni_rc) { case 0: printf("Hostname for %s: %s\n", addr, hostname); break; case EAI_SYSTEM: fprintf(stderr...
Click to read more »Program optimization
Rabu, 2026-08-12 02:41:29integers from 1 to N: int sum = 0; for (int i = 1; i <= N; ++i) { sum += i; } printf("sum: %d\n", sum); This code can (assuming no arithmetic overflow) be rewritten...
Click to read more »Re2c
Jumat, 2026-05-08 00:53:46re2c:yyfill:enable = 0; end = "\x00"; hex = "0x" [0-9a-fA-F]+; * { printf("err\n"); return 1; } hex end { printf("hex\n"); return 0; } */ } int main(int argc, char*...
Click to read more »MIPI Debug Architecture
Selasa, 2025-09-23 05:11:59process. This debug technique is called instrumentation. Examples are: printf-style string generating functions, value information, assertions, etc. The...
Click to read more »S-Lang
Selasa, 2026-02-17 08:56:04declaration and specifies % that return value should be discarded () = printf ("%s\n", strjoin (Keys[i] + "=" + vals[i], " ")); } } ncurses Free and open-source...
Click to read more »Address space layout randomization
Kamis, 2026-07-23 05:35:12layout using format string vulnerabilities. Format string functions such as printf use a variable argument list to do their job; format specifiers describe...
Click to read more »Object pool pattern
Minggu, 2026-07-05 05:09:16{ time.Sleep(time.Duration(rand.Intn(5)) * 100 * time.Millisecond) log.Printf("using resource #%d finished work %d finish\n", r.resId, workId) } // Pool...
Click to read more »Metacharacter
Rabu, 2026-02-04 21:14:40methods) are used to avoid delimiter collision, e.g. "He said, \"Hello\"". In printf format strings, the percent sign ("%") is used to introduce format specifiers...
Click to read more »Shift JIS
Minggu, 2026-07-05 13:37:43Shift JIS. If the programmer is aware of this, it would be possible to use printf("ハローワールド¥n"); (where ハローワールド is Hello, world and ¥n is an escape sequence)...
Click to read more »SystemVerilog DPI
Minggu, 2025-03-16 06:18:31#include <stdlib.h> extern int add(void) { int a = 10, b = 20; a = a + b; printf("Addition Successful and Result = %d\n", a); return a; } module tb_dpi;...
Click to read more »Function prototype
Sabtu, 2026-06-27 08:34:51this.lastTransactionId = "TXN" + System.currentTimeMillis(); System.out.printf("Processing credit card payment of %f %s...%n", amount, currency); return...
Click to read more »Security of the Java software platform
Sabtu, 2026-05-30 07:09:47putLong(memoryAddress, 123456789L); long value = unsafe.getLong(memoryAddress); System.out.printf("Value from memory: %d%n", value); // Output: 123456789 } finally { // Free...
Click to read more »Lazy evaluation
Sabtu, 2026-08-15 15:06:21Lazy<Integer> b = a; a = new Memo<Integer>(() -> b.eval() + b.eval()); } System.out.printf("a = %s%n", a.eval()); Java's lambda expressions are just syntactic sugar...
Click to read more »Binary File Descriptor library
Kamis, 2025-06-12 20:26:27h" #include <stdio.h> int main() { bfd* abfd = bfd_openr("a.o", NULL); printf("%llu\n", bfd_get_size(abfd)); return 0; } Build command: gcc main.c -lbfd...
Click to read more »Data clump
Kamis, 2026-07-16 14:51:32lastName, int age, String gender, String occupation, String city) { System.out.printf("Welcome %s %s, a %d-year-old %s from %s who works as a %s.%n", firstName...
Click to read more »Abstract data type
Senin, 2026-08-17 11:23:42stack_pop(s); if (stack_is_empty(s)) { // does something if stack is empty printf("Stack is empty!"); } } This interface can be implemented in many ways....
Click to read more »Xitami
Rabu, 2026-08-12 03:08:38development of the server stopped except for security updates. In 2008 multiple printf vulnerabilities were reported in the final release of Xitami/2.5. In January...
Click to read more »Gretl
Selasa, 2026-06-16 08:29:55{1, 2 ; 3, 4} matrix B = inv(A) matrix C = A*B print A B C loop i=-3..3 printf "Phi(%d) = %7.3f\n", i, cdf(N, i) endloop Running the above code produces...
Click to read more »Cyclone (programming language)
Senin, 2026-04-06 20:58:58} catch { case &Null_Exception: printf("Error: can't open /etc/passwd\n"); return 1; case &Invalid_argument(s): printf("Error: invalid argument: %s\n"...
Click to read more »Unreferenced variable
Kamis, 2023-02-23 02:32:27developments in the code. C: int main(void) { int i, j; for (i=0; i<10; i++) printf("%d", i); return 0; } In this example, j is an unreferenced variable. Blair-Chappell...
Click to read more »Verilog Procedural Interface
Senin, 2026-07-27 05:23:49vpiIntVal; vpi_get_value(argh, &argval); value = argval.value.integer; vpi_printf("VPI routine received %d\n", value); // Increment the value and put it back...
Click to read more »GNU Bison
Minggu, 2025-08-10 03:02:163*( 5 + 1 )"; SExpression *e = getAST(test); int result = evaluate(e); printf("Result of '%s' is %d\n", test, result); deleteExpression(e); return 0;...
Click to read more »Callback (computer programming)
Minggu, 2026-08-23 08:28:39<stdlib.h> void printNumber(int (*getNumber)(void)) { int val = getNumber(); printf("Value: %d\n", val); } int getAnswerToMostImportantQuestion(void) { return...
Click to read more »Monte Carlo integration
Selasa, 2025-10-28 22:38:45insideCircle++; } } // Calculating pi and printing. pi = 4.0 * insideCircle / throws; printf("%lf\n", pi); } Made in Python. import numpy as np rng = np.random.default_rng(0)...
Click to read more »Sequence point
Minggu, 2026-05-03 08:15:51associated with an input/output format specifier. For example, in the expression printf("foo %n %d", &a, 42), there is a sequence point after the %n is evaluated...
Click to read more »Regula falsi
Kamis, 2026-07-16 11:39:32very small (looks like zero) */ break; } } return c; } int main(void) { printf("%0.15f\n", falsi_method(&f, 0, 1, 5E-15, 100)); return 0; } After running...
Click to read more »C++20
Selasa, 2026-05-26 08:29:48(PDF) from the original on 2019-08-20. Retrieved 2019-07-20. "P1652R1: Printf corner cases in std::format". www.open-std.org. 2019-07-20. Archived from...
Click to read more »Cmp (Unix)
Selasa, 2026-02-03 11:26:302006-02-09. Retrieved 2025-08-09. cmp(1) – FreeBSD General Commands Manual printf – Shell and Utilities Reference, The Single UNIX Specification, Version...
Click to read more »Enumerated type
Sabtu, 2026-08-15 00:16:42/ EARTH.surfaceGravity(); for (Planet p : Planet.values()) { System.out.printf("Your weight on %s is %f%n", p, p.surfaceWeight(mass) ); } } } Dynamically...
Click to read more »Template (C++)
Kamis, 2026-08-27 09:30:31arguments in a manner somewhat similar to variadic functions such as std::printf. using std::format_string; using std::ofstream; enum class Level { ... };...
Click to read more »Calling convention
Kamis, 2026-08-13 15:41:03registers must be saved. This is also of use in variadic functions, such as printf(), where the function's arguments need to be accessed as an array. A single...
Click to read more »Push–relabel maximum flow algorithm
Rabu, 2026-08-12 19:54:11capacities[4][5] = 4; printf("Capacity:\n"); printMatrix(capacities); printf("Max Flow:\n%d\n", pushRelabel(capacities, flow, 0, 5)); printf("Flows:\n"); printMatrix(flow);...
Click to read more »Command-line argument parsing
Senin, 2026-08-10 05:36:48h> int main(int argc, char* argv[]) { for (int i = 0; i < argc; ++i) { printf("%s\n", argv[i]); } } C POSIX library also has functions called getopt()...
Click to read more »Log4j
Senin, 2026-05-25 02:22:09PatternLayout, which uses a pattern string, much like the C / C++ function printf. There are also HTMLLayout and XMLLayout formatters for use when HTML or...
Click to read more »Mutator method
Selasa, 2025-10-21 21:59:33old_age = getStudentAge(s); printf("%s's old age = %i\n", name, old_age); setStudentAge(s, 21); int new_age = getStudentAge(s); printf("%s's new age = %i\n"...
Click to read more »Phantom reference
Jumat, 2026-01-23 06:18:30Reference<? extends Resource> ref = queue.poll(); if (ref != null) { System.out.printf("Object is ready to be collected: %s%n", ((PhantomReference<?>)ref).get());...
Click to read more »JIS X 0201
Kamis, 2026-05-21 15:47:57is C programming language's control characters of string literals, like printf("Hello, world.¥n");. The following table is the original 8-bit coded character...
Click to read more »Relational operator
Rabu, 2026-08-12 21:18:402; if (x = y) { // This code will always execute if y is anything but 0 printf("x is %d and y is %d\n", x, y); } Though Java and C# have the same operators...
Click to read more »Entry point
Kamis, 2026-07-16 05:39:41Main(); exit(exitCode); } // note the name is Main(), not main() int Main() { printf("No main() function in this program."); return 0; } The main() function...
Click to read more »Term (logic)
Selasa, 2026-07-07 14:31:32return i*i; } #include <stdio.h> int main(void) { int n; scanf(" %d",&n); printf("%d\n", sum(1, n, square)); // applies sum operator to sum up squares return...
Click to read more »Comparison of command shells
Selasa, 2026-08-25 19:23:22macOS 10.3–10.14 GPL Yes Text-based CLI No Yes[better source needed] Yes (printf builtin) Yes Yes (arbitrary fds[citation needed]) Yes (via variables and...
Click to read more »Bs (programming language)
Rabu, 2025-07-02 15:20:27built-in format function, limited to one argument, supports a subset of C's printf format conversion specifiers, e.g., "%f". The language has some conspicuous...
Click to read more »Union type
Sabtu, 2026-08-22 02:58:10union { float f; uint32_t d; // Assumes float is 32 bits wide }; f = 3.14f; printf("Hexadecimal representation of 3.14f: %x\n", u.d); Anonymous unions are...
Click to read more »ATS (programming language)
Senin, 2026-06-22 17:06:39@(...) flat tuple or variadic function parameters tuple (see example's printf) @[byte][BUFLEN] type of an array of BUFLEN values of type byte @[byte][BUFLEN]()...
Click to read more »Perl 5 version history
Senin, 2026-06-01 17:18:25explicit definitions for integer shifting Reordered precision arguments for printf and sprintf More fields provided to sigaction callback The experimental...
Click to read more »Action! (programming language)
Kamis, 2026-06-18 15:30:02TIME=RTCLOK ; get timer reading SDMCTL=34 ; restore screen PRINTF("%E %U PRIMES IN",COUNT) PRINTF("%E %U JIFFIES",TIME) RETURN While taking his postgraduate...
Click to read more »Dead-code elimination
Senin, 2026-07-20 17:33:52main(void) { int a = 5; int b = 6; int c; c = a * (b / 2); if (DEBUG_MODE) { printf("%d\n", c); } return c; } Because the constant DEBUG_MODE will always evaluate...
Click to read more »Can4linux
Minggu, 2024-08-04 04:36:19byte */ read(fd, &frame, 1); /* ! count is number of frames, not byte */ printf("received CAN Frame Id %ld, DLC=%d\n", frame.id, frame.length); return 0;...
Click to read more »Symbolic execution
Minggu, 2026-05-24 19:49:16z = y * 2; if (z == 12) { perror("Program failed!"); return 1; } else { printf("OK"); return 0; } } During a normal execution ("concrete" execution), the...
Click to read more »Spreadsort
Jumat, 2025-07-25 07:44:22allocation failure check and clean return with sorted results if (!BinArray) { printf("Using std::sort because of memory allocation failure\n"); std::sort(Array...
Click to read more »Multiply-with-carry pseudorandom number generator
Jumat, 2026-08-28 04:32:29cmwc_state cmwc; unsigned int seed = time(NULL); initCMWC(&cmwc, seed); printf("Random CMWC: %u\n", randCMWC(&cmwc)); } The following are implementations...
Click to read more »Comparison of C Sharp and Java
Jumat, 2026-08-28 03:53:13new Ref<String>("still unchanged"); swap(a, b); changeMe(s); System.out.printf("a = %d, b = %d, s = %s%n", a.val, b.val, s.val); } } using System; class...
Click to read more »Interactive C
Senin, 2024-01-01 11:16:22Here is the basic "Hello World" example for IC programming: void main() { printf("Hello World"); } Here is another example using motor ports 1 and 3: void...
Click to read more »Strsafe.h
Kamis, 2024-11-21 04:23:30strsafe.h replace standard C string handling and I/O functions including printf, strlen, strcpy and strcat. The strsafe functions require the length of...
Click to read more »Comparison of programming languages (associative array)
Kamis, 2026-07-09 01:32:32range phone_book { fmt.Printf("Number for %s: %s\n", key, value) } // over just keys for key := range phone_book { fmt.Printf("Name: %s\n", key) } The...
Click to read more »ProDG (software)
Selasa, 2026-07-07 20:11:33watch points were supported. Also included was the colour-coded display of printf streams with optional auto-wrapping and configurable scrollback buffer sizes...
Click to read more »Join-pattern
Rabu, 2026-03-04 12:13:20-> put("Tea") ;; (* serve: drinks Join.chan *) def refund(v) = let s = Printf.sprintf "Refund %d" v in put(s) ;; (* refund: int Join.chan *) let new_vending...
Click to read more »City & Guilds Mnemonic Code
Sabtu, 2026-03-21 06:47:24various real-world devices, the Code included a formatting system similar to printf format strings to ease the task of outputting readable text. The format...
Click to read more »IRAF
Senin, 2025-12-22 22:30:23hello # CL callable task procedure hello() # common procedure begin call printf ("hello, world\n") end SPP programs have usually the suffix .x, those which...
Click to read more »Outline of Ubuntu
Jumat, 2026-08-14 11:07:41through the file. m4 more — display files one screen-at-a-time nl paste printf sed sort strings tail tr uniq vi wc xargs env exit logname mesg talk tput...
Click to read more »Perl language structure
Kamis, 2026-07-23 03:05:10always up and always down, respectively. The number-to-string conversion of printf "%f" or sprintf "%f" round out even, use bankers' rounding. Perl also has...
Click to read more »