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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
can we print any string in c language without using 
semicolon(;)(terminator) in whole program.
 Question Submitted By :: Pushpendra
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can we print any string in c language without using semicolon(;)(terminator) in whole program.
Answer
# 1
#include<stdio.h>
int main()
{
	while(printf("Hai")&&0){}
}
 
Is This Answer Correct ?    15 Yes 8 No
Vinothkumar.r
 
  Re: can we print any string in c language without using semicolon(;)(terminator) in whole program.
Answer
# 2
#include<stdio.h>
void main()
{
   if(printf("Hello")){}
}
 
Is This Answer Correct ?    15 Yes 4 No
Nitish_bhasin
 
 
 
  Re: can we print any string in c language without using semicolon(;)(terminator) in whole program.
Answer
# 3
#include<stdio.h>
void main()
{
 while(printf("hello")?0:1)
 {
}
}
 
Is This Answer Correct ?    6 Yes 3 No
Gauravjeet Singh Gill
 
  Re: can we print any string in c language without using semicolon(;)(terminator) in whole program.
Answer
# 4
#include<stdio.h>
void main()
{
   if(printf("Hello")){}
}
this is the correct answer.
 
Is This Answer Correct ?    4 Yes 1 No
Abhradeep Chatterjee
 
  Re: can we print any string in c language without using semicolon(;)(terminator) in whole program.
Answer
# 5
#include<stdio.h>
void main()
{
if(printf("Hello World!!!")!=0)
{}

}
 
Is This Answer Correct ?    4 Yes 0 No
Geeta
 
  Re: can we print any string in c language without using semicolon(;)(terminator) in whole program.
Answer
# 6
main()
{
if(printf("Hello world"))
{}
}
//Here the {} act as a blank compound statement. But it is
//not mandatory to put some simple statements in it  which
//require a semicolon. There are many more such answers to
//this question but the basic funda will be same
 
Is This Answer Correct ?    0 Yes 0 No
Vinnu Bhardwaj
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.  1
how to find out the reverse number of a digit if it is input through the keyboard?  2
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks. Google3
will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);  2
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output CitiGroup4
How do you write a program which produces its own source code as its output?  3
the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789  3
how to find out the union of two character arrays?  1
Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com  4
9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro? L&T4
Who is invented by c? Infosys14
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??  4
what does " calloc" do? Cadence6
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?  1
write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101) Bosch1
pgm to find middle element of linklist(in efficent manner) Huawei2
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to? CTS2
IS STRUCTURES CAN BE USED WITHIN AN ARRAY? Caritor7
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); } ME3
What is encapsulation?  1
 
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