main()
{
float f=5,g=10;
enum{i=10,j=20,k=50};
printf("%d\n",++k);
printf("%f\n",f<<2);
printf("%lf\n",f%g);
printf("%lf\n",fmod(f,g));
}
Answer / susie
Answer :
Line no 5: Error: Lvalue required
Line no 6: Cannot apply leftshift to float
Line no 7: Cannot apply mod to float
Explanation:
Enumeration constants cannot be modified, so you cannot
apply ++.
Bit-wise operators and % operators cannot be applied on
float values.
fmod() is to find the modulus values for floats as %
operator is for ints.
Is This Answer Correct ? | 11 Yes | 5 No |
Develop a routine to reflect an object about an arbitrarily selected plane
main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }
write a c-program to display the time using FOR loop
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
Design an implement of the inputs functions for event mode
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
Is it possible to type a name in command line without ant quotes?
why java is platform independent?
what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);