Follow

collections of c interview questions and other programming language questions and tutorial

Owner: srsabariselvan

Listed in: Computers

Language: English

Tags: programming, c++, java, interview

Report it


Site Statistics

Unique Visitors Today:
0
Page Views Today:
0
Unique Visitors this Week:
0
Page Views this Week:
0
Unique Visitors this Month:
0
Page Views this Month:
0
Total Unique Visitors:
5,776
Total Page Views:
11,835
Total Hits Out:
173
Traffic Chart

Latest Blog Posts for ifprintfquotLogical Programsquot

  • Coding to create a pyramid using numbers in c program
    on Dec 15, 2010 in Logical programs
    #include<stdio.h>void main(){ int n; do { printf("How many lines you want to printn"); scanf("%d",&n); } while((n<1)||(n>9)); for(int i=1;i<=n;i++) { for(int j=1;j<=(n-i);j++) printf(" "); for(j=1;j<=i;j++)...
  • Predict the output for this programint main( ){printf("%d",printf("%d %d",5,5)&printf("%d %d",7,7));return 0;}1 7 7 5 57 7 5 5 15 5 7 7 37 7 5 5 3...
  • What is the output of the following program?
    on Aug 14, 2010 in printf Function Buffer Formatting
    int main( ){printf(" %d %d",printf("%d %d",7,7),printf("%d %d",5,5));return 0; }7 7 5 5 3 3 5 5 7 7 3 33 3 7 7 5 53 3 5 5 7 7...
  • Producint 2 power n series using bitwise operator
    on Aug 11, 2010 in bitwise operator
    I am printing 2n series up to 210 int main(){int i;for(i=0;i<10;i++)printf("%d\n",1<<i);return 0; }This will be the output of the above code1248163264128256512...
  • Extern variable :predict the output
    on Aug 10, 2010 in scope extern variables
    int i=2;int main(){extern int i;clrscr();printf("%d",i);getch();return 0;}int i=3;...
  • predict the output
    on Jun 12, 2010
    #includevoid main(){ int check=2; switch(check){ case 1: printf("D.W.Steyn"); case 2: printf(" M.G.Johnson"); case 3: printf(" Mohammad Asif"); default: printf(" M.Muralidaran"); }}(A) M.G.Johnson (B) M.Mura...
  • static
    on Jun 2, 2010 in Storage class scope
    main(){static int var = 5;printf("%d ",var--);if(var)main();}Answer:5 4 3 2 1Explanation:When static storage class is given, it is initialized once. The change in the value of a staticvariable is retained even between the function calls. Main is also...
  • on Jun 2, 2010
    #include#define a 10main(){#define a 50printf("%d",a);}Answer:50Explanation:The preprocessor directives can be redefined anywhere in the program. So the most recentlyassigned value will be taken. main(){char *p;p="Hello";printf("%c\n",*&*p);}Answer:H...
  • Short circuit operators
    on May 24, 2010 in Logical operators
    Short circuit operator is operator in which first operand of expression is evaluated , the second operand is evaluated if it is necessary. Short circuit operators in c programming are &&(Logical AND), ||(Logical OR). Logical AND:In logical AND ope...
  • Predict the output
    on Apr 30, 2010 in Storage class extern
    extern int a;int ss();int main(){int a=10;ss();return printf("%d",a);}int ss(){return printf("%d",a");}int a=20;Answer:202010201010Compilation Error...
Loading Comments...

Comments

{ds_PageTotalItemCount} commentcomments
{pvComments::date}
{pvComments::comment}

Post a Comment

Close