give an example of type casting by a simple c program
Answer Posted / guest
[code]
#include<stdio.h>
main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}
[/code]
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
can we implement multi-threads in c.
C language questions for civil engineering
What is an expression?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
Explain what header files do I need in order to define the standard library functions I use?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Why header files are used?
Explain what are the standard predefined macros?
Can we declare variable anywhere in c?
What is the method to save data in stack data structure type?
what is event driven software and what is procedural driven software?
Which one would you prefer - a macro or a function?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Is array a primitive data type in c?