ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
program for validity of triangle from 3 side
 Question Submitted By :: Pictpatanga
I also faced this Question!!     Rank Answer Posted By  
 
  Re: program for validity of triangle from 3 side
Answer
# 1
if a<c and b<c then c<a+b
 
Is This Answer Correct ?    2 Yes 3 No
Chandra
 
  Re: program for validity of triangle from 3 side
Answer
# 2
if(a < (b+c))
  if( b < (c+a))
    if(c < (a+b))
       printf("its a triangle\n");
 
Is This Answer Correct ?    3 Yes 1 No
Pritam
 
 
 
  Re: program for validity of triangle from 3 side
Answer
# 3
yes, the above two answers are correct.
 
Is This Answer Correct ?    1 Yes 1 No
Abhradeep Chatterjee
 
  Re: program for validity of triangle from 3 side
Answer
# 4
No above two answers are not corret, because i am not sure 
about the shape and angle of the triangle.
 
Is This Answer Correct ?    0 Yes 1 No
Abhradeep Chatterjee
 
  Re: program for validity of triangle from 3 side
Answer
# 5
I think Abhradeep Chatterjee is a real STUPID.
 
Is This Answer Correct ?    0 Yes 1 No
Pritam
 
  Re: program for validity of triangle from 3 side
Answer
# 6
really abhardeep is stupid...?
 
Is This Answer Correct ?    0 Yes 1 No
Manu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
how to find the kth smallest element in the given list of array elemnts. Silicon5
main() { float a=3.2e40; printf("%d",a); } Satyam5
what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }  7
Program to trim a given character from a string. NetApp4
4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above Accenture4
how to generate the length of a string without using len funtion?  3
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c? Geometric-Software5
What is structure packing ? HP1
What are advantages and disadvantages of recursive calling ? HP11
disadvantages of realloc ? HCL1
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression TCS1
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?  4
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986  2
how to find turn around time in operating system?  1
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk. Google3
Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h" Accenture14
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6 TCS5
Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);  1
What's the difference between calloc() and malloc()?  3
What is the difference between char a[] = "string"; and char *p = "string"; ? Honeywell11
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com