give an example of type casting by a simple c program

Answer Posted / ola

#include<stdio.h>
void main()
{
float a;
a = (float)15 / 3;
printf("%f\n",a);
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you write a code for accessing the length of an array without assigning it to another variable?

611


List the different types of c tokens?

619


Can we assign string to char pointer?

580


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

632


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1643






What is the difference between procedural and functional programming?

512


Is that possible to add pointers to each other?

892


Give the rules for variable declaration?

669


Write a program to check armstrong number in c?

632


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1624


How many types of arrays are there in c?

588


What are the types of type qualifiers in c?

642


When a c file is executed there are many files that are automatically opened what are they files?

587


Are enumerations really portable?

590


Where define directive used?

598