C programming language quiz questions and answers for  beginners 
Time: 6 minute
(1)
void main(){
  
float a=30.3f;
  
int y=5;
  
clrscr();
  
printf("%d",a%y);
  
getch();
  
}
What will be output when you will compile above code?
  
(a) 6
  
(b) 6.0
  
(c) 7
  
(d) Compiler error
  
(e) None of these
  
(2)
  
void main(){
  
int x=5;
  
float r=5.0;
  
clrscr();
  
No comments:
Post a Comment