Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
double_buffer_madness
#include <stdio.h> #define SIZE 2 void look(const int ptr[SIZE][SIZE]) { printf("\nMeaning: %d", ptr[1][1]); } void modify(int ptr[][SIZE]) { ptr[1][1] = 42; } int main() { int data[SIZE][SIZE]; for (int i = 0; i < SIZE; ++i) { for (int j = 0; j < SIZE; ++j) { data[i][j] = i*j; } } modify(data); look(data); return 0; }
run
|
edit
|
history
|
help
0
18BCE2182 ASSESS_1 Q1-2
level9
b=1 c=1
18BCE2182 MIDTERM QUES-2
recurs fibo1
Date
Poiter minus
conditional expression
Project 3 part 2 Book v10.1
ECE 2574 1/23