ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> ERRORS
 
  C-C++-Errors (62)  DotNet-Errors (14)  Scripts-Errors (55)
 


 

Back to Questions Page
 
Question
when i save float data value 11.22 but this see in table 
11.220000004758456 type ? how to save only two decimal point.
Rank Answer Posted By  
 Question Submitted By :: Rake$h
I also faced this Question!!   ALL Interview .com
Answer
if u put 11.22 in a variable x, try this :

x=11.22;
printf("%2.2f",x);

2.2f specifies that ,it will print exactly 2 digits to the 
left of decimal point and 2 digits to the right of the decimal 
point.You can use any number according to ur requirement ,like 
(%x.yf).
 
0
Guest
 
 
Question
osgelvaitre arrange it which make 1 romantic 
word
Rank Answer Posted By  
 Question Submitted By :: Rahul
I also faced this Question!!   ALL Interview .com
Answer
Love is Great
 
0
Akshay Jain
 
 
Question
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
Rank Answer Posted By  
 Question Submitted By :: Jayant.champ
I also faced this Question!!   ALL Interview .com
Answer
#include<stdio.h>
#include<conio.h>

void main()
{
int var;
int count=0;
int n=0;
clrscr();
while(n<10)
{
printf("Enter the number:");
scanf("%d",&var);
if(var%2 == 0)
{
count++;
n++;
}
else
{
n++;
continue;
}
}
printf("Even numbers present:%d",count);
getch();
}
 
0
Nipun
 
 
 
Question
Write a program to accept two strings of Odd lengths. Then 
take all odd characters from one string and even characters 
from the other and concatenate and produce a string.
Rank Answer Posted By  
 Question Submitted By :: Mani
I also faced this Question!!   ALL Interview .com
Answer
#include<stdio.h>
void main()
{
char *str1[10],*str2[10],str3[10],str[4];
boolean check1,check2;
int i=0,j=1;
do
printf("enter the first string of odd length");
scanf("%s",str1);
printf("enter the second string of odd length");
scanf("%s",str2);
check1=testlen(&str1);
check2=testlen(&str2);
}
while(check1!=true && check2!=true);

while( *str1!='/o' || *str2!='/o')
{
if(str1[i]!='/o)
str3[i]=str1[i];

if(str2[i]!='/o)
str3[i+1]=str2[i];

i+=2;
}

while( *str1!='/o' || *str2!='/o')
{
if(str1[j]!='/o)
str4[j]=str1[j];

if(str2[j]!='/o)
str4[j+1]=str2[j];

i+=2;
}
printf("The value of string1 is %s",str1);
printf("The value of string1 is %s",str2);
printf("The value of string1 is %s",str3);
printf("The value of string1 is %s",str4);

}

boolean testlen(char *c) //function
{
int count;
while(*c++!='/o')
count++;
if(count%2!=0)
return true;
else
return false;
}

 
0
Mani
 
 
Question
i forgot to take signature of the supervisor during my board 
exams of ssc gujarat board.Now what should i do?
Rank Answer Posted By  
 Question Submitted By :: Ananya
I also faced this Question!!   ALL Interview .com
Answer
chale lya
 
0
Zeal
 
 
Question
how to fix the heap space error in java ?
Rank Answer Posted By  
 Question Submitted By :: Vikass.v1
I also faced this Question!!   ALL Interview .com
Answer
Increase the Maximum Heap size of the JVM Process used by your server. 
And Make sure that you have sufficient RAM available in your machine.
 
0
Dinesh
 
 
Question
what is wrong with this insert into code?
vb 2008 say that there is a syntax error but i believe there is nothing..

cmd.CommandText = " INSERT INTO account1(username, password, lname, fname, mi) VALUES('" & Me.TextBox4.Text & "','" & Me.TextBox5.Text & "','" & Me.TextBox1.Text & "','" & Me.TextBox2.Text & "','" & Me.TextBox3.Text & "')"
                cmd.ExecuteNonQuery()
Rank Answer Posted By  
 Question Submitted By :: Asloversgo_03
I also faced this Question!!   ALL Interview .com
Answer
" INSERT INTO account1(username, password, lname, fname, mi) VALUES('" + Me.TextBox4.Text + "','"+ Me.TextBox5.Text + "','" + Me.TextBox1.Text + "','" + Me.TextBox2.Text + "','" + Me.TextBox3.Text + "')"
 
0
Kk
 
 
 
Back to Questions Page
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com