main()
{
char *p = “ayqm”;
printf(“%c”,++*(p++));
}
Answer Posted / marginal
q
| Is This Answer Correct ? | 4 Yes | 25 No |
Post New Answer View All Answers
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
A program that will create a movie seat reservation. The program will display the summary seats and its status. The user will be ask what seat no. to be reserved, then it will go back again to the summary to display the updated seat status. If the seat no. is already reserved then it will prompt an error message. And also if the input seat no is out of range then it will also prompt an error message. The program is continuously running. Termination of the program will depends on how the programmer will apply. Sample output: Movie Seats Reservation Summary of Seats: Seat 1: Available Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 1 Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 6 The Seat no. is out of range! Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 1 The Seat no. is already reserved! Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 0 GoodBye... Thank You!!!
Sir... please give some important coding questions asked by product companies..
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
why nlogn is the lower limit of any sort algorithm?
What is full form of PEPSI
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
Write a routine to implement the polymarker function
could you please send the program code for multiplying sparse matrix in c????
#include
Develop a routine to reflect an object about an arbitrarily selected plane
What is data _null_? ,Explain with code when u need to use it in data step programming ?
Cluster head selection in Wireless Sensor Network using C programming language.
write a simple calculator c program to perform addition, subtraction, mul and div.
how to test pierrot divisor