No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
#include<stdio.h> #define CH char*; int main(){ CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } here the o/p is 4 1. why isnt b also of type char*..?? |
|
#include<stdio.h> int main(){ float f1=14.375; float f2=14.385; if(f1==14.375) printf("Yes1\n"); else printf("No1\n"); if(f2==14.385) printf("Yes2\n"); else printf("No2\n"); return 0; } the output of this prog is Yes1 No2 but i had expected Yes1 Yes2 plz explain me the output...?? |
|
Re:
code 1: #include<stdio.h> int main(void) { int a; a= 1,2,3; int b = a++; printf("%d",b); return 0; } code 2 : #include<stdio.h> int main(void) { int a; a= (1,2,3); int b = a++; printf("%d",b); return 0; } Can you please explain why that bracket is making ouput changed ? i … |
|
this is my code to get an image named "hkkl.jpg" from documents and show it on applet. but it gives error saying: illegal unicode escape at /user and /documents.... import java.applet.*; import java.awt.*; public class Test extends Applet{ Image i; public void init(){ i=getImage("C:\users\both\documents","hkkl.jpg"); } public void paint(Graphics g){ g.drawImage(i,10,10,this); … |
|
I cant find the error here... its giving 0 0 as output for all input cases. plz help. #include<stdio.h> #define max(a,b) a>b?a:b void build(int ai,int l,int r); int query(int ai,int l,int r,int i,int j,int count); void update(int ai,int l,int r,int i,int j); int aa,b,m; int inp[6]; struct arr { int … |
|
$ awk -F ":" 'NR!=1 {print $1}' test1.txt what does this mean?? especially ":"?? |
|
i am a beginner. i need online tutorial for shell scripting. there are many on the web.. which one to choose?? |
|
char str[]="qwerty"; char *p="qwerty"; str++; \\error *str='a'; \\works p++; \\works *p='k'; \\error whereas, char str[]="hello"; char *p="hello"; str="tell";\\ error p="tell"; \\works strings point to themselves like arrays then why is str="tell"; \\error an error?? is the case same for arrays?? please explain the reason for every line. also, why can't … |
|
why can't we take an array :- a[10000000]?? what is the alternative? |