bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit ac861c73e764c1adba12ad158518dd9db72c7dff
parent d213a2e595b39465303abf430adb1a1119ec4ee2
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Sun,  8 Feb 2026 14:16:25 +0530

[2026-02-08] : .\{root} : edit

Diffstat:
MSemester_1/assignment-primary/assignment-p-12_v2.c | 50++------------------------------------------------
Mdeploy_pipeline.py | 5+++--
Mdocs/index.html | 48+-----------------------------------------------
3 files changed, 6 insertions(+), 97 deletions(-)

diff --git a/Semester_1/assignment-primary/assignment-p-12_v2.c b/Semester_1/assignment-primary/assignment-p-12_v2.c @@ -7,50 +7,4 @@ */ /* Write a C program that takes multiple integers as command-line arguments and finds the -maximum and minimum value among them. */ - -#include <stdio.h> -#include <stdlib.h> - -// use atoi() - -int main(int argc, char *argv[]) -{ - int current_val, max_val, min_val, i; - char *endptr; - long first_arg_val; - if (argc < 2) - { - printf("Usage: %s <integer1> <integer2> ...\n", argv[0]); - return 1; - } - first_arg_val = strtol(argv[1], &endptr, 10); - if (*endptr != '\0' || argv[1] == endptr) - { - printf("Error: Argument '%s' is not a valid integer.\n", argv[1]); - return 1; - } - max_val = (int)first_arg_val; - min_val = (int)first_arg_val; - for (i = 2; i < argc; i++) - { - long val = strtol(argv[i], &endptr, 10); - if (*endptr != '\0' || argv[i] == endptr) - { - printf("Error: Argument '%s' is not a valid integer.\n", argv[i]); - return 1; - } - current_val = (int)val; - if (current_val > max_val) - { - max_val = current_val; - } - if (current_val < min_val) - { - min_val = current_val; - } - } - printf("The maximum value is: %d\n", max_val); - printf("The minimum value is: %d\n", min_val); - return 0; -}- \ No newline at end of file +maximum and minimum value among them. */+ \ No newline at end of file diff --git a/deploy_pipeline.py b/deploy_pipeline.py @@ -14,7 +14,7 @@ from datetime import datetime BSC_REPO_ROOT = r"G:\bsc" GENERATE_INDEX_SCRIPT = r"G:\bsc\docs\generate_index.py" -ARANAG_SITE_DESKTOP = r"C:\Users\PC\Desktop\aranag.site" +ARANAG_SITE_DESKTOP = r"C:\Users\PC\Desktop\amit.is-a.dev" BSC_LOCAL_BACKUP = r"G:\bsc_local" ARANAG_REPO_ROOT = r"G:\aranag" @@ -27,7 +27,8 @@ ARANAG_PRESERVE = [ "sitemap.xml", ".firebase", ".git", - "esal" + "esal", + "amit.is-a.dev" ] def remove_readonly(func, path, exc_info): diff --git a/docs/index.html b/docs/index.html @@ -1199,53 +1199,7 @@ int main(int argc, char *argv[]) */ /* Write a C program that takes multiple integers as command-line arguments and finds the -maximum and minimum value among them. */ - -#include &lt;stdio.h&gt; -#include &lt;stdlib.h&gt; - -// use atoi() - -int main(int argc, char *argv[]) -{ - int current_val, max_val, min_val, i; - char *endptr; - long first_arg_val; - if (argc &lt; 2) - { - printf(&quot;Usage: %s &lt;integer1&gt; &lt;integer2&gt; ...\n&quot;, argv[0]); - return 1; - } - first_arg_val = strtol(argv[1], &amp;endptr, 10); - if (*endptr != &#x27;\0&#x27; || argv[1] == endptr) - { - printf(&quot;Error: Argument &#x27;%s&#x27; is not a valid integer.\n&quot;, argv[1]); - return 1; - } - max_val = (int)first_arg_val; - min_val = (int)first_arg_val; - for (i = 2; i &lt; argc; i++) - { - long val = strtol(argv[i], &amp;endptr, 10); - if (*endptr != &#x27;\0&#x27; || argv[i] == endptr) - { - printf(&quot;Error: Argument &#x27;%s&#x27; is not a valid integer.\n&quot;, argv[i]); - return 1; - } - current_val = (int)val; - if (current_val &gt; max_val) - { - max_val = current_val; - } - if (current_val &lt; min_val) - { - min_val = current_val; - } - } - printf(&quot;The maximum value is: %d\n&quot;, max_val); - printf(&quot;The minimum value is: %d\n&quot;, min_val); - return 0; -}</div> +maximum and minimum value among them. */</div> </div> <div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror