First commit

This commit is contained in:
2026-10-02 23:16:58 +03:00
commit 220bbc82a3
5 changed files with 73 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": []
}
+28
View File
@@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "C:\\msys64\\ucrt64\\bin\\gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
View File
+38
View File
@@ -0,0 +1,38 @@
#include <stdio.h>
int main()
{
int n,i,j;
int array[n];
int *ptr = array;
printf("Enter the size of the array: ");
scanf("%d", &n);
for(i=0;i<n;i++)
{
printf("Please enter the %d number: ",i+1);
scanf("%d",(ptr+i));
}
for(j=0;j<n;j++)
{
printf("The %d. number is %d \n",j+1,*(ptr+j));
}
}
BIN
View File
Binary file not shown.