![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions Write a program that would input integer from 40-127 and output the equivalent octal hexadecimal value. Q1 How to swap Low-order byte and high order byte in an integer without using temporary variable ?Q2 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 Read Answers (7) | Asked by : M.srilatha 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. ... Read Answers (3) | Asked by : mohammed arif 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. ... Read Answers (1) | Asked by : Richa 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. View Question | Asked by : Ravikannan What is the output of the following program#includevoid main(){printf("%d%d",sizeof('a'),sizeof("a")); What will be the output of the following question#includemain(){int i=90,k,l;k=i%-3;l=-i%3;printf("%d",k+l);} Zero int *ptr = (int *)malloc(100*(sizeof(int)));ptr++;free(ptr); Latest Answer : it will allocate 200 bytes of memory and returns pointer to the first location...correct me if iam wrongregardsumesh ... How a variable value is stored and retrieved at runtime in C?for example main(){ int a; a=5; }Where is the value of 'a' stored and How it is retrieved at runtime? main{int x=90;float *ptr;ptr=(float *)&x;*ptr=50.0;printf("%d",x);printf("%f",*pf);}Though the address of i & pf are same but the value which i get when i print x is a different integer Latest Answer : It is always helpful to write valid code. Your example would not compile and the output would not be readable.1: int x = 90;2: float* ptr;3: ptr = (float*)&x;4: *ptr = 50.0f; ... Read Answers (1) | Asked by : chitraj
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||