How to run c Program without using IDE of c.
means if program made in notepad.then how to compile by
command prompt.



How to run c Program without using IDE of c. means if program made in notepad.then how to compile b..

Answer / rajesh

compile
gcc filename.c
its create exe file is a.out
run
./a.out


ll gie output

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

How to find the usage of memory in a c program

1 Answers   Infosys,


What is meant by global static? why we have to use static variable instead of Global variable

4 Answers   L&T,


Why does everyone say not to use scanf? What should I use instead?

0 Answers  


What is #line used for?

0 Answers  


main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

2 Answers   Vector, Vector India,






a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.

3 Answers   Google,


Why c is called procedure oriented language?

0 Answers  


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which of the following is incorrect? (A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .

2 Answers   Oracle,


write a program to copy the string using switch case?

0 Answers   Mind Tree,


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

2 Answers  


Categories