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
EUCLIDES BIEN
a>=0 && b>=a
LinkedListTest
G
Pattern 13
Project 5 v.01
PRACTICE FINAL 2
ele709 lab 3.4
printf
C_141204_ContadorPalabras