what does exit() do?
Answers were Sorted based on User's Feedback
Answer / shruti
nopes,
it does not come out of the executing prog normally..
for that, we have to explicitly mention as
exit(0);
Is This Answer Correct ? | 7 Yes | 0 No |
what is diff b/w huge & far & near pointer??
What does %d do in c?
Explain how can you tell whether a program was compiled using c versus c++?
Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?
Explain how can I write functions that take a variable number of arguments?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”
What are the different types of errors?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
Why can't we initialise member variable of a strucutre
void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?