What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
Answer / kesavan
It will print the garbage value.
|Is This Answer Correct ?||81 Yes||28 No|
Answer / guest
it is used to print one integer data type value.
|Is This Answer Correct ?||85 Yes||46 No|
Answer / cooooooool bipul
It will not give any syntax error more specifically.. it
will not give any type of error..
The output depends on the compiler u r using...
if it is GCC of linux then O/p== garbage value
there are compilers which will give the last integer value
will give ouput 30... but for Gcc it will be garbage value.
|Is This Answer Correct ?||43 Yes||8 No|
Answer / vanitha
|Is This Answer Correct ?||25 Yes||11 No|
Answer / anand
it will print some value currently on top of the stack
|Is This Answer Correct ?||20 Yes||7 No|
Answer / mohanraj
It will print a garbage value.
|Is This Answer Correct ?||25 Yes||13 No|
Answer / sid
it will give output "0"
|Is This Answer Correct ?||48 Yes||42 No|
Answer / sanjiv
It will give a garbage value. It is tested.
|Is This Answer Correct ?||15 Yes||9 No|
Answer / narendra
it will print 0
|Is This Answer Correct ?||4 Yes||0 No|
Answer / anzarudeen
|Is This Answer Correct ?||4 Yes||1 No|
How do you link a C++ program to C functions?
difference between macro and function?
Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
what is polymorphism?
please help to write the code of chess game in c++??????????
What is a dangling pointer?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
Badboy is defined who has ALL the following properties: 1. Does not have a girlfriend and is not married. 2. He is not more than 23 years old. 3. The middle name should be "Singh" 4. The last name should have more than 4 characters. 5. The character 'a' should appear in the last name at least two times. 6. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What is the difference between Class and Structure?
How to construct virtual constructor
How size of a class can be calulated?