int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p?
Answer Posted / sanjay
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("\na=%d\n",a);
scanf("a=%d\n",a);
printf("a=%d\n",a);
printf("a=%d\n\n\n",&a);
//scanf("b=%d\n",&b);
//printf("a=%d\n",b);
//printf("a=%d\n",&a);
getch();
}
tell me the output why -12 and -28713 when i was enter 1 or
any digit?
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a macro in c preprocessor?
What are pointers?
How do I read the arrow keys? What about function keys?
Do you know what are bitwise shift operators in c programming?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Explain how can I make sure that my program is the only one accessing a file?
What is the stack in c?
What's a good way to check for "close enough" floating-point equality?
Is it possible to initialize a variable at the time it was declared?
What are the 5 elements of structure?
What is pragma c?
What is wrong with this declaration?
What is the difference between printf and scanf in c?
what will be the output for the following main() { printf("hi" "hello"); }
What is pivot in c?