ravinder rawat


{ City } noida
< Country > india
* Profession * ase
User No # 95333
Total Questions Posted # 1
Total Answers Posted # 3

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

Users Marked my Answers as Correct # 86
Users Marked my Answers as Wrong # 19
Questions / { ravinder rawat }
Questions Answers Category Views Company eMail

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

MGM,

C 2737




Answers / { ravinder rawat }

Question { L&T, 19750 }

write a program of palindrome(madam=madam) using pointer?


Answer

#include
#include
void main()
{ char *a,*count,s[11];
int i ;
printf("\n:enter string for Palindrome test\t");
scanf("%s",&s);
i= strlen(s);
a=(char *)malloc(i*sizeof(char));
a=&s[0];
count=&s[i-1];
while((*(a++)==*(count--)) && i>=1)
{ i--; }
if(i==0) { printf("\n%s is a palin",s);}
else { printf("\n%s is not palin",s);}
getch();
}

Is This Answer Correct ?    39 Yes 7 No

Question { 16477 }

what is the output of
printf("%d",(scanf("%d",10));


Answer

scanf returns nos. of arguments taken by scanf hence it
will ask user to input and if integer is fed as I/P then
printf gives 1 as o/p

Is This Answer Correct ?    4 Yes 1 No


Question { Infosys, 16575 }

how to execute with out main in cprogram


Answer

#include
#define ravinder(z,g,c,f,x,y) z##c##y##x
#define rawat ravinder(m,b,a,j,n,i)

void rawat()
{ printf("MGM NOIDA");
getch();}

Is This Answer Correct ?    43 Yes 11 No