Ajay George blog

The Cult AGP

Sizeof operator implementation

here is the code which uses a simple macros to implement the sizeof operator

#include<iostream>
#include<conio.h>
#include<stdio.h>
using namespace std;
#define getsize(x) ((char *)(&(x) + 1) – (char *)&(x)) //macros
main()
{
char a[]=”hello”;
cout<<getsize(a); //output is 6 because backslash 0 has to be considered.

getch();
return 0;
}

July 30, 2007 Posted by Ajay George | Programming | | 7 Comments

NIT Warangal in Top Ten Tech Colleges in India

NIT Warangal again in the elite club, second only to IITs.

Describing the National Institute of Technology (formerly, Regional Engineering College) Warangal, being in the top 10, the study said that for the “first time, a second-rung school broke into the Top 10 list”. It was at number eight, up four notches from last year.

Read the full article at…

Times of India Article on NIT Warangal

Update : they removed the link

Here is the low res screenshot I captured from the snap.

Read the last line.

Low Res Screenshot of the page

Update : India Today review puts us at 11th pos

(I have doubts about the authenticity of the rating because VIT and Anna University are ahead of all NITs)

NIT Warangal on the 11th positon

Update : Indian Express Ranks NIT Warangal at 8.

Click Here for the Link

Update 2 : Do not post your Gate Scores here, as this blog does not associate itself with Gate Admissions

July 5, 2007 Posted by Ajay George | NIT Warangal | | 111 Comments