aaaa12345
This has nothing to do with return type of main being int or void.I believe you are coding in windows, so for output screen to stay you need to use getch() or similar function. These functions wait for user input that will keep output screen visible.
You can try using getch() in int main() before return 0. int main() . getch(); return 0; This will also work.
As for why do we need getch() in windows environment for output screen to stay you can check my earlier answer Vikas Srivastava's answer to What is the use of getch(), putch(), getchar(), putchar()? Can't we write a program without using these in C language?
· Related Questions
Do you feel obligated to speak to your neighbors if you notice them outside at the same time you are?
Normally the answer would be a yes to acknowledge them. A wave or head nod just to let them know you see them. And that is only if they are looking and open to receiving it.
We live next to what I refer to as the witness protection plan neighbors. they are deadly silent and act as if we are invisible. In this situation no I dont speak to them at all.
And I truly dont care what they think. Kindness must reciprocate and cannot just be one sided. Ill give you 5 chances - if you continue to act off The chances run out and we are done
------
How do you deal with greeting someone in a foreign country?
If I say hello (in their language), they might assume I speak their language. So, I just say "Hi." and wait to see how they react.
Back in the 90s, I was working, for a holiday company, as a driver taking holidaymakers to the local (ish) airports.One morning I had to take a Japanese family to the airport. I knew that Kon'nichiwa meant hello, so when I arrived at their house I greeted them with Kon'nichiwa.
The teenage daughter laughed and greeted me with a torrent of Japanese, none of which I understood, so I waited until she had finished, smiled and said Kon'nichiwa.She looked at me for a second or two, obviously realised that was all the Japanese that I spoke and repeated what she had said in perfect English.Still, it broke the ice and it was a fun drive to the airport.
------
What is the output? int I 0; int limit 6; while (I
println ("i " i); I;
As others have pointed out, the code wont compile. However, in less time than you can post a question on quora, wait for a bunch of answers, read and interpret them and figure out which ones are best, you can type in the program and see!Computing is fun, and there is never a reason to ask other people what will this program do.
You have a computer, and you can ask the computer by typing it in. The answer will be correct. There may be programs with different behavior on different systems, but still, trying things is at the heart of becoming a programmer.
What did you get when you tried it?
------
What does COB mean in military terms?
Theres another meaning as well.
Chief of the BoatThis is a term used on US submarines, and it describes a senior enlisted sailor who is in effect appointed as a staff advisor rather than placed directly in the line of command.The COB (pronounced cob as in corn cob) may be but does not need to be the most senior enlisted rating on the boat. He is however the most trusted of the ratings, and advises the boats captain on matters to do with personnel, morale, discipline, and other such non-tactical but still essential issues.
It is hard to overstate the importance of having a good COB to back up the boats captain and leadership team
------
Why do Greeks paint trees white?
It is not paint, it is limestone.It is supposed to help repel insects and disinfect, however it is proven that in most cases it has no effect, as it is not a fungicide or pesticide.
Only in apple and pear trees, it physically prevents sesia (Sesia myopiformis) from laying eggs on the bark.It has nevertheless a different utility: the white colour prevents the bark from heating too much under the summer sun and this prevents its cracking, which can cause infections and rot. So whitewashing functions as a sunscreen.
But also many gardeners like to whitewash their trees' trunks for aesthetic reasons, because it provides the appearance of a well-tended garden.Sources: . ;
------
How did Michael get away with killing the 5 chiefs?
The Corleones werent as strong as they were. And the families surely didnt forgive Michael. How did he survive them?
He seized power by simultaneously taking out the most powerful men in the other 5 families. In the chaos and power vacuum that ensued, who had the balls to openly challenge the man who just killed the man that you kneeled to and his 3?other rivals as well as the disloyal members of his own family?
(John Gotti didnu2019t ask if he could kill Paul Castellano. He took out Big Paul and then took his place as head of the family and none of the other families did a thing. )Michael had shown that he was a cunning and ruthless adversary and likely had connections within the other families that betrayed the schedule and whereabouts of their boss.
Cross him upon pain of death
------
What are the required skills to be a block chain developer?
Im not sure if I like how this question is framed but ill answer how I feel.There are many different architectures and areas of expertise in the cryptocurrency industry.
If you can touch c/c AND interact with that on a website or phone app you will be very marketable in multiple industries. Realistically to break into a block chain role you are going to need to integrate yourself within the community you want to work for. Yes.
Its much harder to find a traditional sort of job. However, people do observe and elevate developers who intrinsically make their technology better. Its kind of like being hybrid role as a developer, politician, and hero
------
Is GarageBand available for Windows?
Thanks for your question. The short, difinative answer, is no.GarageBand and Logic are both fantastic DAW programs with a large and diverse user base.
They are also both available only on macOS. I know there are some people who offer u2018hacksu2019 to make it run under Windows u2026 but this approach is really unworkable. A DAW (digital audio workstation) program needs instant unfettered access to all of your system resources.
A u2018hackedu2019 version of GarageBand made to run in Windows will not do so natively. You will have very poor performance, when compared to GarageBand running on macOS. Note: I am the manager of a music store, and we have many musicians that do their own recording.
My advice comes from years of their experiences, both successes and failures.Happy hacking
------
Why do people not say u201cHellou201d to strangers?
The art of communication is the language of leadership.
So it is important for us to know how to communicate with everyone meet.In our life we communicate several people in a day. But if we try to conclude we see that we communicate with only two people.
It sounds strange but it is true.These are: (1) known. (2) unknown(1).
KNOWN: We talk anyway we want depending on bonding between them starting with greeting with u201chellou201d. Now we can drive the conversation according to our wish. (2).
UNKNOWN: For starting a conversation with strange, we need an excuse or reason to talk. This conversation doesn't start with hello. We must use words like u201cexcuse meu201d to initiate the conversation so that stranger must not feel disturbed and could proceed in conversation.
------
How is Memorial University Of Newfoundland for mechanical Engineering?
MUN Engineering is accredited with many of their alumni quite accomplished. Much is left to the students talents, motivation, and discipline.
Be warned, it's CO-OP and runs full year alternating between academic and work terms. It's also five years. There is a strong and competitive onus on the student to obtain quality work experience.
Traveling & accommodation between work and academic terms was a stressor for some if their job was elsewhere. Most jobs were.As a networking aside, for the first year and a half all engineering students are mostly in the "same class".
Once specialized, the "mechanicals" follow that trend a bit longer. The mechanical stream, as well as oneu2019s class, is known to have a rather strong "esprit d'corps".Is the Memorial University of Newfoundland good for mechanical engineering?
.
------
Why can't we use C to write AI programs?
I have done a bit of AI, specifically on neural network.
You can use C to write AI programs. The reason why many people use Python for it, is because of the easiness of programming using it. Imagine you are a data analyst, and you need to do some analytics using AI for a task.
If you were to use C, you would have to learn the syntax first(a lot harder compared to Pythons) , primitive data types and then object-orientation, just to solve that one task, which would probably cost you a lot of time.Python deals with these, where you can get away with using it without needing to really learn about the computer science part, and so people can focus on doing analytics
------
Why do British accents sound intelligent to Americans?
It depends on the accent.
The Received Pronunciation, (a.k.a.
BBC English, the Queen's English) was used among higher-class Britons. Many people pursuing higher education picked up the accent, and it was the standard for BBC newscasters. These connotations may not signal intelligence, but they signal social status that often correlates with intellignece.
It still has that connotation. On the other hand, a Cockney accent implies being working class and lower status. It implies less education and indirectly lower academic intelligence, but it also implies "street-smarts".
The scouse accent (from Liverpool), also implies working-class, but it comes with a bit of coolness to Americans because the Beatles had that accent.
------
What is the correct syntax for Java main method?
Java main method syntax:public static void main(String args)// Here the main() method accepts a single argument: an array of Stringshere the array of Strings is the mechanism through which the runtime system passes information to your application.
Each String in the array is called a command line argument.command-line argument is an argument i.e.
passed at the time of running the java program. args contains the array of String object.Here we declare the example:class UserNamepublic static void main(String args)System.
out.println("UserName is: "args0);compile //javac UserName. javarun ://java soniwe are receiving only one argument and printing it.
To run this java program, you must pass at least one argument from the command prompt
------
Is there a posh American accent?
Kind of, yes, but its disappearing, and quickly. It is, or was traditionally, a continuum of old money accents, from Massachusetts (often called the Boston Brahmin accent) down through New England, to some now-dead varieties of New York City and Long Island English.
They seem a bit British at times, but theyre not. Theyre also not the same as the learned mid-Atlantic accents of old-time actors and radio announcers.The Roosevelts all had it (TR, FDR, ER), as did Katharine Hepburn.
Even if the accents were further cultivated in private schools which they probably were , those people still came by them naturally. You may find this fellows accent interesting
------
How will programming change when quantum computers exist?
Q: How will programming change when quantum computers exist?
As another answer points out, quantum computers are not a threat to replace traditional computers for most tasks. (Machine learning and other automated program construction technologies are, but thatu2019s an answer to a different question.)On the other hand, if youu2019re asking what programming quantum computers looks like, the answer is thatu2019s nothing at all like programming traditional computers.
For an overview, check out Quantum Algorithm Implementations for Beginners. There is a section about quantum computing followed by many working examples.If you are unfamiliar with quantum computing, the examples will look totally alien to you.
Note: the link is to the abstract. To see the full text, click on PDF at upper right. The arxiv is not paywalled