- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[B][/B]char c "GATE2011"; char *p =c; printf "%s", p+p 3 p 1 ; = [B][/B] the output is 2011 can any one explain how? | |
[CODE] struct node{ int value; struct node *next; }; void rearrange(struct node *list) {struct node *p,*q; int temp; if(!list || !list->next)return p=list;q=list->next; if(q) { temp=p->value; p->value=q->value; q->value=temp; q=p?p->next:0; } } }[/CODE] list is containing the integers 1,2,3,4,5,6,7 then the output is? also what's the meaning of p=list(as per me its … | |
import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class DerbyTest { private Connection connect = null; private Statement statement = null; private ResultSet resultSet = null; public DerbyTest() throws Exception { try { Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance(); connect = DriverManager.getConnection("jdbc:derby://localhost:`1527/vineet"); statement=connect.createStatement(); resultSet = statement.executeQuery("SELECT * FROM EMPLOYEE"); while (resultSet.next()) { String user … | |
when the above code is executed then it is showing that m string is undefined, please tell how to modify a string ,which is taken as input [code]String m; BufferedReader x = new BufferedReader(new InputStreamReader(System.in)); try { m = x.readLine(); } catch (IOException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } a--;} … | |
I am not getting a efficient way to solve the problem, the time taken i more than 5 sec while the time alloted for this problem is 1 sec .so please help me .please give me a answer using collections. ========== EASY - 2 ========== The great pirate Khurafati and … |