Latest Answer : NitinMishra is absoulutely right that number generated by rand() is not random. I think this code will serve the purpose.....#include #include int main(){ // Just for example, i have taken the list ...
Write a program that would input integer from 40-127 and output the equivalent octal hexadecimal value.
Q1. write a program to find a given number is armstrong number or not ?Q2write a program which accepts a filename as a command line argument and reverse the contents of the file(i.e first character becomes the last character of the file and so on ?Q3 how can i call a function given its name as a string ?Q4 How to swap low-order byte and high order byte in an integer without using temporary variable?Q5 If we develop a project in C, then how can we create an .exe file of it?Q6 how to print 1 to 100
please let me know the answers to my email address as i having the interview in TCS so please please please please let me know
Q1 How to swap Low-order byte and high order byte in an integer without using temporary variable ?Q2 write a program to print numbers from 1 to 100 without using any condition checking ?Q3 If we develop a project in C,then how can we create an .exe file of it?Q4 Write a program which accepts a filename as a command like argument and reverse the contents of the file (i.e firs character becomesthe last character of the file and so on)input: the program takes the file name whose content should be
Latest Answer : In c every function by default returns an integer value. By using void we mean a value zero is return to the environment i.e., operating system. ...
Latest Answer : hi bupendra,String is immutable object which means the contents in the string object cannot be modified. Stringbuffer object contents can be modified. ...
Latest Answer : There is no need of declaring the function main() as it is already known to compiler .main() is a function from where the execution starts. ...
I have a class defined belowclass A{ int *m_ptr; A(){}};main(){ int *loc_ptr; A a1,a2;}I have to write a copy constructor for this classPlease help in this problemThanks in Advance.
Write a program to count the occurrence of following C keywords in a file and calculate the sum? 1.int 2.char 3.static 4.struct 5.union 6.return
What is the output of the following program#includevoid main(){printf("%d%d",sizeof('a'),sizeof("a"));