ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Code-Snippets
 
 


 

Back to Questions Page
 
Question
¦void main()
¦{
¦int i=10,j;
¦ j=i+++i+++i;
¦printf("%d",j);
¦getch();
¦}
¦ output:-30
but in same question if we write as-
¦void main()
¦{
¦int i=10;
¦ int j=i+++i+++i;
¦printf("%d",j);
¦getch();
¦}
¦ output:-33
why output is changed from 30 to 33. Can any body answer...
Rank Answer Posted By  
 Question Submitted By :: Indianajay123
I also faced this Question!!   ALL Interview .com
Answer
ithink cannot use void in main().becoz returns integer. and output of this 2 program is 30 only.not print 33
 
0
Manikandan
 
 
Question
respected sir, i did my MCA in 2013 when i am going to attend 
to an interview  i was asked about my project how will i 
explain my project could please help me in this and my project 
title is "Social Networking Site For Social Responsibility"
Rank Answer Posted By  
 Question Submitted By :: Nahid
This Interview Question Asked @   genpact
I also faced this Question!!   ALL Interview .com
Answer
Starting with your project name...

                   then team size
                         duration of project

            then explain about project..
                                like  wat are the benfits of your topic(project)

&&& so...
 
0
Kar4u
 
 
Question
How to Check if a string is alphanumeric or not using VB 
Script
Rank Answer Posted By  
 Question Submitted By :: Vishnu
I also faced this Question!!   ALL Interview .com
Answer
String s = "maulik";
Pattern p = Pattern.compile("[^a-zA-Z0-9]");
boolean hasSpecialChar = p.matcher(s).find();
 
0
Maulik
 
 
 
Question
what is oop?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   ALL Interview .com
Answer
Object Oriented Programming Language aka OOP's language, whose basic concept and hirecarry revolve around considering code snippets as real objects of world. It's better than procedural programming language, with strongly typed language.
 
0
Ravi
 
 
Answer
A type of programming in which programmers define not only
the data type of a data structure, but also the types of
operations (functions) that can be applied to the data
structure. In this way, the data structure becomes an object
that includes both data and functions. In addition,
programmers can create relationships between one object and
another. For example, objects can inheritcharacteristics
from other objects.

One of the principal advantages of object-oriented
programming techniques over procedural programming
techniques is that they enable programmers to create modules
that do not need to be changed when a new type of object is
added. A programmer can simply create a new object that
inherits many of its featuresfrom existing objects. This
makes object-oriented programs easier to modify.
 
0
Maulik
 
 
Question
which function is used to clear the buffer stream on gcc?
for example:
I wrote following code on gcc
#include<stdio.h>
int main(void)
{
char ch;
int a,b;
printf("\nenter two numbers:\t");
scanf("%d%d",&a,&b);
printf("enter number is %d and %d",a,b);
printf("\nentercharacter:\t");
scanf("%c",&ch);
printf("enter character is %c",ch);
return 0;
}

in above progarm ch could not be scan.
why?plz tell me solution.
Rank Answer Posted By  
 Question Submitted By :: Yogesh.karanjkar
I also faced this Question!!   ALL Interview .com
Answer
after scanning integers if we scan character this happens.
it is a bug of scanf
so to solve this give a space in scanf before %c like this :
scanf(" %c",&ch);
so that it will wait for the character.
 
0
Nikhil
 
 
Question
does anyone know the code to display a triangle using a 
applet?
Rank Answer Posted By  
 Question Submitted By :: Sureshzzz
I also faced this Question!!   ALL Interview .com
Answer
use graphics package and tell the answer
 
0
Sureshzzz
 
 
Question
code inside filter to restrict users to access a servlet 
component .
Rank Answer Posted By  
 Question Submitted By :: Abhay
This Interview Question Asked @   NIIT
I also faced this Question!!   ALL Interview .com
Answer
plz give any one and send @ abhaykk0009@gmail.com.


thanks in advance
 
0
Abhay
 
 
 
Back to Questions Page
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com