question-how to run a c programme.
Answers were Sorted based on User's Feedback
Answer / sam
In case of unix
cc FileName.c to compile and the output would be in a file
to fetch it
type ./a.out
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mrs.ahmer
The program can be loaded in the memory by selecting
RUN>RUN from menu bar or pressing CTRL+F9.user can display
the output screen be selecting WINDOW>USER SCREEN or
pressing ALT+F5
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / jogdand mahesh
Goes DOs Windows and set the path of C language type the
TCC File_Name.C
Your Programe Will be RUN
| Is This Answer Correct ? | 1 Yes | 1 No |
What is c language and why we use it?
12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
Why header files are used?
what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }
Explain the use of 'auto' keyword
What is structure padding ?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??