main()
{
char *p;
p="%d\n";
p++;
p++;
printf(p-2,300);
}
Answer / susie
Answer :
300
Explanation:
The pointer points to % since it is incremented twice and
again decremented by 2, it points to '%d\n' and 300 is printed.
| Is This Answer Correct ? | 8 Yes | 1 No |
How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.
print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
main() { printf("%x",-1<<4); }
How we will connect multiple client ? (without using fork,thread)
what is oop?
Write a program that reads a dynamic array of 40 integers and displays only even integers
Write a program to print a square of size 5 by using the character S.
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
void main() { int i=i++,j=j++,k=k++; printf(ā%d%d%dā,i,j,k); }
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!!!