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


Please Help Members By Posting Answers For Below Questions

What language is lisp written in?

622


write a program to rearrange the array such way that all even elements should come first and next come odd

1766


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

702


Explain setjmp()?

661


Explain 'far' and 'near' pointers in c.

710






What is the code for 3 questions and answer check in VisualBasic.Net?

1696


What is the size of array float a(10)?

659


Can one function call another?

630


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

736


how to write optimum code to divide a 50 digit number with a 25 digit number??

2757


What is context in c?

543


How do you determine whether to use a stream function or a low-level function?

657


Which control loop is recommended if you have to execute set of statements for fixed number of times?

813


What's the difference between constant char *p and char * constant p?

660


What is the basic structure of c?

561