Explain command-line arguments in C.
Answer / nashiinformaticssolutions
Command-line arguments are passed to the main() function as argc (argument count) and argv (argument vector).
| Is This Answer Correct ? | 0 Yes | 0 No |
main() { float a=3.2e40; printf("%d",a); }
how to build a exercise findig min number of e heap with list imlemented?
pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc()
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }
What is assignment operator?
Write a c pgm for leap year
11 Answers College School Exams Tests, IBM, TCS,
How can I access memory located at a certain address?
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??
What is the difference between a string and an array?
Explain how can you avoid including a header more than once?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
2 Answers Aricent, Manipal University,
How to reverse a string using a recursive function, without swapping or using an extra memory?
31 Answers Cisco, Mind Tree, Motorola, Ophio, Sony, TCS, Wipro,