If the speed of light (c), acceleration due to gravity (g) and pressure (p) are taken as the fundamental quantities, then the dimension of gravitational constant is
Let [G] ∝cx gypz
by substituting the following dimensions :
[G] = [M−1L3T−2],[c]=[LT−1],[g]=[LT−2]
[p]=[ML−1T−2]
compare the dimension of M, L and T on both sides
we can get x=0,y=2,z=1
∴[G]∝c0 g2 p−1