How to find the usage of memory in a c program
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
list the no of files created when c source file is compiled
Is c easy to learn?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Write code for atoi(x) where x is hexadecimal string.
What does c mean before a date?
What is the difference between typedef and #define?
main() { int i=400,j=300; printf("%d..%d"); }
For what purpose null pointer used?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Explain what is a const pointer?
Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.