What is the difference between declaring a variable and defining a variable?
No Answer is Posted For this Question
Be the First to Post Answer
How to swap 3 numbers without using 4th variable?
What is an example of enumeration?
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is a macro?
Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV
Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code
Explain why can’t constant values be used to define an array’s initial size?
What do you mean by a sequential access file?
Explain low-order bytes.
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
how can we use static and extern?and where can we use this?