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 is s or c?

787


What is volatile variable how do you declare it?

753


What is malloc() function?

825


Explain can static variables be declared in a header file?

895


Why is c called a mid-level programming language?

953


What are extern variables in c?

730


What is difference between union All statement and Union?

865


How do we make a global variable accessible across files? Explain the extern keyword?

1614


What is the benefit of using an enum rather than a #define constant?

917


What is extern storage class in c?

702


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

819


What is 02d in c?

832


What is optimization in c?

737


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1455


Which programming language is best for getting job 2020?

778