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?
Answer Posted / yash
hi yash
#include<stdio.h>
int main()
{
while(printf("hello")){}
}
Is This Answer Correct ? | 33 Yes | 53 No |
Post New Answer View All Answers
What is cohesion and coupling in c?
Write a code to remove duplicates in a string.
How to implement a packet in C
What is s or c?
what are non standard function in c
what is the height of tree if leaf node is at level 3. please explain
What is difference between class and structure?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
What is meant by int main ()?
writ a program to compare using strcmp VIVA and viva with its output.
What is the use of a static variable in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Explain how do you convert strings to numbers in c?
What do you mean by dynamic memory allocation in c?