how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / abhishek roy
Yes there is syntax error in printf statement but if write
printf("%d",i--)then The output for the given for loop is
5 3 1.
it is 100 % write....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Tell me when is a void pointer used?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
How can I open files mentioned on the command line, and parse option flags?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. 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
How can I swap two values without using a temporary?
What is data types?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is the role of this pointer?
Write a Program to accept different goods with the number, price and date of purchase and display them
Are local variables initialized to zero by default in c?
When should we use pointers in a c program?
What is the meaning of 2d in c?
How do you construct an increment statement or decrement statement in C?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Write a simple code fragment that will check if a number is positive or negative.