write a c program to find largest of three numbers using simple if only for one time.
without a terminator how can we print a message in a printf () function.
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
What are the average number of comparisons required to sort 3 elements?
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.
How we can set and clear bit in a byte using macro function?
consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value
What do you know about the use of bit field?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
HOW TO SWAP TWO NOS IN ONE STEP?
Is c programming hard?
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,