what is the difference between put and putc statement?
Answer / Munish Kumar Gautam
In Ruby, put prints a string to standard output and automatically adds a newline character at the end. putc, on the other hand, prints a single byte of data without adding a newline character.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me how you can list all routes for an application?
How will you rename and delete a file in Ruby?
What is the difference between a class and a module?
Tell us what is the difference between dynamic and static scaffolding?
In how many ways items can be removed from array in Ruby?
Explain the types of variables available in ruby class?
Tell me how you can create a controller for subject?
Tell me how do you remove nil values in array using ruby?
Explain the garbage collection feature of ruby?
What is the difference between static and dynamic scaffolding?
How is visibility of methods changed in ruby?
Explain about variables?