Write a C program to multiply tho numbers without using
arithmetic operator (+, -, *, /).
Answer / taz
int a=5,b=2,c,i,j;
for(i=1;i<=a;i++)
for(j=1;j<=b;j++)
c++;
printf("%d",c);
Is This Answer Correct ? | 5 Yes | 1 No |
what are you see during placement time in the student.
0 Answers Goldman Sachs, TCS, Tech Solutions,
typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?
What is the use of bit field?
write a program to find the given number is prime or not
2 Answers Accenture, Vasutech,
What are compound statements?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
where do we use volatile keyword?
What are structural members?
What does char * * argv mean in c?
What is the difference between array and structure in c?
Explain how can you tell whether two strings are the same?