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
14th Feb Programming Project v.01
PRACTICE 1
faster posting list using skip pointers
Bool datatype Operation for GCC
6 ejercicio trabajo semanal 4
WHY_?
pseudo hw
Project 3 part 2 Book v0.7
Lab 11 v.05
CO Assignment 1 Question 2