Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 a macro in c preprocessor?

1088


What are pointers?

1089


How do I read the arrow keys? What about function keys?

1066


Do you know what are bitwise shift operators in c programming?

1090


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1255


Explain how can I make sure that my program is the only one accessing a file?

1212


What is the stack in c?

1119


What's a good way to check for "close enough" floating-point equality?

1146


Is it possible to initialize a variable at the time it was declared?

1204


What are the 5 elements of structure?

1071


What is pragma c?

1097


What is wrong with this declaration?

1097


What is the difference between printf and scanf in c?

1335


what will be the output for the following main() { printf("hi" "hello"); }

10953


What is pivot in c?

1017