pawan kumar jha


{ City } delhi
< Country > india
* Profession * no.
User No # 27513
Total Questions Posted # 0
Total Answers Posted # 3

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 24
Users Marked my Answers as Wrong # 14
Questions / { pawan kumar jha }
Questions Answers Category Views Company eMail




Answers / { pawan kumar jha }

Question { HCL, 28953 }

#include"stdio.h"
#include"conio.h"
void main()
{
int a;
printf("\n enter a number:");
scanf("%c\n");
getch();
}


Answer

Here in the scanf("%c\n");
it is just take a input. and, it will store that input
value anywhere.
it would be just garbage value. ok.........
nothing is output.
say, null pointer assignment.........



Is This Answer Correct ?    2 Yes 5 No

Question { HCL, 28953 }

#include"stdio.h"
#include"conio.h"
void main()
{
int a;
printf("\n enter a number:");
scanf("%c\n");
getch();
}


Answer

Here in the scanf("%c\n");
it is just take a input. and, it will store that input
value anywhere.
it would be just garbage value. ok.........
nothing is output.
say, null pointer assignment.........



Is This Answer Correct ?    3 Yes 3 No


Question { HCL, 8307 }

void main()
{
int i=7;
printf("N= %*d",i,i);
}


Answer

Its output would be 7,

"%*d"

here * symbol doesn't affect of operation of %d.

so 7 is set to value in variable i.


Is This Answer Correct ?    19 Yes 6 No