GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  CDAC
Go To First  |  Previous Question  |  Next Question 
 CDAC  |  Question 23 of 25    Print  
What will be the output for the below statements
1) printf("hello""hai");
a)hello
b)hai
c)both
d)none of these

2) printf("hello","hai");
a)hello
b)hai
c)both
d)none of these
(NOTE:this is recently asked question in CDAC)
ANS 1: c

ANS 2: a



  
Total Answers and Comments: 2 Last Update: April 30, 2008     Asked by: praveen kethipalli 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 16, 2008 02:12:54   #1  
btnedu Member Since: June 2007   Contribution: 1    

RE: What will be the output for the below statements1) printf("hello""hai"); a)hello b)hai c)both d)none of these 2) printf("hello","hai"); a)hello b)hai c)both d)none of these (NOTE:this is recently asked question in CDAC)

printf("hello""hai");
it  wil print "hellohai"

 
Is this answer useful? Yes | No
April 30, 2008 07:04:51   #2  
manishmca1 Member Since: April 2008   Contribution: 4    

RE: What will be the output for the below statements1) printf("hello""hai"); a)hello b)hai c)both d)none of these 2) printf("hello","hai"); a)hello b)hai c)both d)none of these (NOTE:this is recently asked question in CDAC)
Ans is D

print is 'hello''''hai

 
Is this answer useful? Yes | No

 Related Questions

What will be the output for the below statements1) printf("hello""hai"); a)hello b)hai c)both d)none of these 2) printf("hello","hai"); a)hello b)hai c)both d)none of these (NOTE:this is recently asked question in CDAC)
ANS 1: c ANS 2: a 


 Sponsored Links

 
Related Articles

C++ Decision Making Statements

C Decision Making Statements In this C tutorial you will learn about decision making statements if statement if… else statement switch statement conditional operator along with syntax and examples mosgoogle center Decision making is an important concept in any programming language and to
 

C++ Standard Input Output Stream

C Standard Input Output Stream In this C tutorial you will learn about standard input stream and standard output stream explained along with syntax and examples C programming language uses the concept of streams to perform input and output operations using the keyboard and to display information on
 

exit and return statements

  How does the exit () and return () differ exit () is used to exit the program as a whole. In other words it returns control to the operating system. After exit () all memory and temporary storage areas are all flushed out and control goes out of program. In contrast, the return () stateme
 

JavaScript Conditional Statements Part 2

JavaScript Conditional Statements Part 2 In continuation of JavaScript Conditional Statements Part 1 this tutorial will help you learn about remaining conditional statements in JavaScript if else if else statement and switch statement mosgoogle if else if else statement If there are many branching o
 

JavaScript Conditional Statements Part 1

JavaScript Conditional Statements Part 1 In this JavaScript tutorial you will learn about the conditional statements available in JavaScript for decision making if statement and if else statement mosgoogle Just like any other programming language conditional statements in JavaScript are used for de
 

PHP Tutorials - Conditional Statements

PHP Tutorials Conditional Statements In this PHP Tutorials you will learn about Conditional Statements if statement if else statement Alternative if else statement  and  switch statement mosgoogle if statement if syntax is as follows if an expression that return Boolean value
 

WebSphere V5.0 : Creating SQL statements

WebSphere V5 0 Creating SQL statements In this tutorial you will learn about WebSphere V5 0 Creating SQL statements SQL query builder Use Query builder to generate queries mosgoogle Use query builder to generate queries Creating SQL statements You can create an SQL statement using either the SQL que
 

C Programming - Managing Input and Output Operations

C Programming Managing Input and Output Operations In this tutorial you will learn about Single character input output String input and output Formatted Input For Scanf Input specifications for real number Input specifications for a character Printing One Line Conversion Strings and Specifiers Speci
 

SQL Server 2000: Creating Stored Procedure with Input and Output Parameters

This tutorial explains how to create and use Stored Procedures with Input Parameters and output parameters along with the screen shots and sample code Creating Stored Procedure with Input Parameters mosgoogle Input Parameters in Stored Procedures are placeholders for data that the user needs to send
 

Related Categories
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape