Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
dynamic memory allocation.c
//gcc 5.4.0 #include <stdio.h> int main() { int *marks; int i,n; printf("please enter the number of students: "); scanf("%d",&n); //now allocate memory marks=(int *) malloc(sizeof(int) * n); printf("enter the marks for each student: \n"); for(i=0; i<n; i++) { scanf("%d",&marks[i]); } printf("now here you can see the values: \n"); //now print the marks array for(i=0; i<n; i++) { printf("%d\n",marks[i]); } return 0; }
run
|
edit
|
history
|
help
0
Add.c
Project 4 v1
MatrixMul_shortxshort
fibonacci2
20171117_TARTAGLIA
b=1 c=1
ㅇㅇㅇ
3.1.2 Matrix add/sub file concept
B_141128_MatrizUnSoloIndice
Linked List demo in C