/*what is the output for*/
void main()
{
int r;
printf("Naveen");
r=printf();
getch();
}
Answers were Sorted based on User's Feedback
Answer / prathiba
its a compile time error.bcoz r is of integer type.
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / srikanth
compile time error..r is of type integer,so the could is wrong
| Is This Answer Correct ? | 3 Yes | 1 No |
program to find magic aquare using array
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector
Printf can be implemented by using __________ list.
main() { int a[10]; printf("%d",*a+1-*a+3); }
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }
main() { 41printf("%p",main); }8
Finding a number multiplication of 8 with out using arithmetic operator
Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
Is the following code legal? struct a { int x; struct a *b; }
What is the hidden bug with the following statement? assert(val++ != 0);