Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2?

Answers were Sorted based on User's Feedback



52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / sivajyothi katireddi

55:

if(num & (num-1) == 0)
{
printf("num is power of 2\n");
}

Is This Answer Correct ?    2 Yes 0 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / deepak kumar

#include<stdio.h>
main()
{
while(printf("hello world"))
{
}
return(0);
}

Is This Answer Correct ?    3 Yes 2 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / rajeev

#include<stdio.h>
main()
{
if(printf("Hello world \n"))
{
}
}

Is This Answer Correct ?    2 Yes 1 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / rajat sharan

#include<stdio.h>
main()
{
if (printf(hello world))
}

Is This Answer Correct ?    2 Yes 1 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / anshukumarsrivastava.

a program to print a string i am in allahabad without using
a semicolon.
#include<stdio.h>
#include<conio.h>
void main()

{
if(printf(" i am in allahabad"))
getch();
}

Is This Answer Correct ?    4 Yes 4 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / jareesh

//answer for 53
#include "stdafx.h"
void _tmain(int argc, _TCHAR* argv[])
{
if (printf("hi")){}
}

//I tested in win32 console program, worked perfect.

Is This Answer Correct ?    2 Yes 2 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / neeraj

switch(printf("Hello World"..!!!))

{

}

Is This Answer Correct ?    1 Yes 1 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / manjusha k

#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("hello world")){
}
}

Is This Answer Correct ?    0 Yes 0 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / ukrocky

Write Hello World Without using Hello World From Ukrocky

#include<iostream.h>

void main()
{
int a[12]={72,101,108,108,111,32,87,111,114,108,100,0};
for(int i=0; i<12; i++)
{
cout<<char(a[i]);
}
cout<<endl;
}

Is This Answer Correct ?    1 Yes 2 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / g

54:
you can load the source file to memory at the beginning of
the run using mmap(), or using one of the countless methods
to read from file in C and storing the data in a string
array, then it won't matter if the file is deleted, you can
always re-create it using the data in the process memory.

53/55: answering 53 also answers 55.

53:
int checkBits(x){
numOfOnes=0;
do{
if((x%2)!=0)
{numOfOnes++;}
x=x/2;
}while (x!=0);

return numOfOnes;
}

55:
int checkPower(x){
if(checkBits(x)==1)
{return 1;}
else{return 0;}
}

Is This Answer Correct ?    18 Yes 22 No

Post New Answer

More C Interview Questions

Is stack a keyword in c?

0 Answers  


Write a program for deleting duplicate elements in an array

3 Answers   Subex,


Do you know null pointer?

0 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

0 Answers   KPIT,


how to print this pyramid * * * * * * * * * * * * *

2 Answers  


Write a program to print the prime numbers from 1 to 100?

7 Answers  


Explain how do you declare an array that will hold more than 64kb of data?

0 Answers  


Write a program to print "hello world" without using a semicolon?

0 Answers  


What is const volatile variable in c?

0 Answers  


How to use c/c++ code in JAVA

10 Answers   CDAC, IBM, Satyam, Scope International,


how to find the given number is prime or not?

6 Answers   IMS, ING,


atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


Categories