Can I Do Coding Of C Language In Dos Os In Laptop Without Using Any Window?

We usually use a compiler with a graphical user interface, to abridge our C program. This can additionally be done by application cmd. The command alert has a set of accomplish we charge to accomplish in adjustment to assassinate our affairs after application a GUI compiler. In this commodity we would be compassionate how to abridge C affairs in command prompt. So let us get with this commodity on how to abridge C progam in command prompt, How to Abridge C Affairs in Command Prompt? STEP 1: Run the command ‘gcc -v’ to analysis if you accept a compiler installed. If not you charge to download a gcc compiler and install it. You can chase for cmd in your windows arrangement to accessible the command prompt. Output - How to Abridge C Affairs In CMD - RHNCOMPUTER 2: Create a c affairs and abundance it in your system. I accept accounting a affairs to acquisition the Armstrong Cardinal and abundance it in the agenda user. We would be application afterward code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include int main() { int num, original, rem, sum = 0; printf("Enter a three chiffre Number: "); scanf("%d", &num); original = num; while (original != 0) { rem = original%10; sum =sum + remremrem; original =original/ 10; } if(sum == num) printf("%d is an Armstrong number.",num); else printf("%d is not an Armstrong number.",num); return 0; } STEP 3: Change the alive agenda to area you accept your C program. You can do that by application the command ‘cd’, which changes the directory. We charge to canyon the name of the agenda in which the affairs is stored. Example: >cd Desktop Our affairs is already in the user agenda so, we don’t charge to change it. STEP 4: The abutting footfall is to abridge the program. To do this we charge to use the command gcc followed by the name of the affairs we are activity to execute. In our case, we will use Armstrong.c. Output - How to Abridge C Affairs In CMD - RHNCOMPUTER After this, an executable book will be created in the agenda that your c book exists in. Eg: Armstrong.exe STEP 5: In the abutting step, we can run the program. This is done by artlessly giving the name of the executable book after any extension. On giving this we will get an output. Here, our Armstrong cipher is accomplished and we got achievement for this code. Output - How to Abridge C Affairs In CMD - RHNCOMPUTER With this we appear to the end of this blog on ‘How To Abridge C affairs in Command Prompt’. I achievement you begin this advisory and helpful, break acquainted for added tutorials on agnate topics.You may additionally checkout our training affairs to get all-embracing ability on jQuery forth with its assorted applications, you can accept actuality for alive online training with 24/7 abutment and lifetime access. Got a catechism for us? Mention them in the comments area of this blog and we will get a back to you.

Did you find this article valuable?

Support R.Harinarayanan by becoming a sponsor. Any amount is appreciated!