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 |
Describe newline escape sequence with a sample program?
Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0
what is the similarities between. system call and library function?
How to write a program for swapping two strings without using 3rd variable and without using string functions.
difference between i++* and *++i
Why main function is special give two reasons?
What math functions are available for integers? For floating point?
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
What is a pointer in c plus plus?
What is a far pointer in c?
When can a far pointer be used?
write a C code to reverse a string using a recursive function, without swapping or using an extra memory.
9 Answers Motorola, TCS, Wipro,